User Install Instructions
Overview
These instructions are for people who want to use Fontknife to do things like:
converting assets for a specific Python-based project
as dependency for one of your projects
trying it without installing it for your entire user account
See Contributor Install Instructions if you’d like to contribute bug fixes or new features.
Requirements
First, make sure you have Python 3.8+ installed:
Open your favorite terminal application.
Try running
python. If it says the command was not found, try the following:python3python3.8or later minor version numbers
At least one of them should show something like the output below:
Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
If it doesn’t, the see Installing Python section below.
Otherwise, type
exit(), press enter, and skip to User Install Steps.
Installing Python
Platform |
Most reliable way to install Python |
||||||
|---|---|---|---|---|---|---|---|
Windows |
|||||||
macOS |
|||||||
Linux |
Your distro’s package manager:
|
User Install Steps
Create a virtual environment if you haven’t
pip install fontknifeto install the latest versionfontknife convert --helpto make sure it runs.
Testing Your Install
If you want to make sure your install is working, use the following steps:
Download the Tom Thumb BDF font from the bottom of this page.
Run
fontknife convert -p tom-thumb.bdf sheet.pngThe resulting file should be identical to the one below:
It’s tiny (64 x 72 px) because the input data is a 3 x 5 pixel font.