Trufont
TruFont is a font editor that uses the UFO font format and offers Python scripting.
Install / Use
/learn @trufont/TrufontREADME
TruFont
Multi-platform UFO font editor
</div>Maintenance status: The trufont project is currently discontinued. Although we will happily accept bug fixes, no new features are currently planned.
TruFont is a multiplatform font editor built with Python3 and PyQt5.
The wx branch contains a stub wxWidgets port of the app.
Getting started
-
Install Python 3.6 (or later):
- OS X: Install using Homebrew:
brew install python3 - Windows: Download installer from python.org/downloads
- Linux: It's usually packaged with the OS.
- OS X: Install using Homebrew:
-
Set up a new Python virtual environment. Although this is not required, it's highly recommended, since TruFont has lots of dependencies, which may (or may not) conflict with other modules you installed globally.
-
To create a new virtual environment in
ENV_DIR:python3 -m venv ENV_DIRThis creates a new
ENV_DIRfolder (you can choose the name you want). Thebinsubfolder (orScriptsif you are on Windows) contains a newpythonexecutable, and thepipinstaller linked to that. -
Activate the newly created environment:
- OS X or Linux:
source ENV_DIR/bin/activate - Windows:
ENV_DIR\Scripts\activate.bat
This temporarily adds the virtual environment's scripts folder to your console's
PATH, so you can accesspython,pipand thetrufontscript from anywhere. - OS X or Linux:
-
Run
deactivatewhen you wish to exit the virtual environment. This restores the default systemPATH.
-
-
Install/update TruFont to the latest stable release:
pip install --upgrade trufont -
Run the app as
trufont.
Contributing
Here's a quick tutorial if you'd like to contribute to TruFont.
-
Click the "Fork" button above, and clone the forked git repository to a new directory called
trufont:git clone https://github.com/<YOUR_USERNAME>/trufont -
Move into the new folder and run this command to add the upstream repository url to the local list of remotes:
git remote add upstream https://github.com/trufont/trufontThis enables you to keep up-to-date with the upstream development.
-
Synchronize your fork's
masterbranch with theupstream/master, especially before creating new branches:git checkout master git fetch upstream git rebase upstream/master git push -
Install pre-commit. It will run some checks every time you are about to commit something.
pip install pre-commit pre-commit install -
Now, you can create and checkout your new feature branch:
git checkout -b my-cool-new-feature -
Use pip to install TruFont in "editable" mode:
pip install --editable .Instead of copying
trufontto your Python site-packages directory, this command only creates a link to the source directory inside the git repository. You can then modify the code in place, or synchronize the latest upstream changes (as in step 4) without having to re-install. -
It is also recommended to regularly update the dependencies to the curently tested versions as listed in `requirements.txt`:
pip install --upgrade -r requirements.txt -
Once you have commited your patch, push the new branch to your fork:
git push -u origin my-cool-new-feature -
Finally, click "New pull request" on TruFont's GitHub page to submit your patch.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
