Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Installation and usage of FontForge for Python

Posted on 23/06/202227/10/2023 by Edoardo

FontForge is a free, light and very powerful tool to edit fonts. You can use it as stand alone graphical software or as python library.

# Use python3.10
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fontforge/fontforge
sudo apt-get install fontforge python3-fontforge

# In your IDE (such as PyCharm) use the system interpreter instead of creating a new virtual environment

import fontforge
...

# https://fontforge.org/docs/scripting/python.htm

Link to GUI tutorial to edit glyphs here.

Useful notes for FontForge GUI version:

If you edited a glyph and you want to generate the .ttf file, go to File > Generate fonts. In case of this warning: “Non integral coordinates” you can simply go to the glyphs table, right click on the edited glyph and select “To Int”. You are now able to regenerate the font without errors.

Download FontForge

Buy Me A Coffee


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme