Skip to content

DialecticalHTR/FontForgeScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontForge scripts

Handwritten fonts from Calligraphr require processing to be considered usable. The diacritics and base glyphs don't have anchors, vertical alignment and kerning is all over the place.

Scripts in order:

  • create_base_font.py: prompts for two ttf files for two different forms and combines them. Let's say that we try to get everything from the free version.
Example of a handwritten form
  • preprocess_font.py: do glyph autowidth, set apostrophe's and diacritic's width to 0 and space's width to 300
  • add_anchors.py: adds anchors to diacritics and base glyphs base on their shape
  • kern_font.py: autokern pairs of big and small letters

Usage

There is a way to run fontforge from terminal and from python but I'm using Windows so I just copypasted the scripts into "Run Script" window. It can be accessed from "File" or with Ctrl+. hotkey.

Before and after

Example of a handwritten form
Example of a handwritten form

About

FontForge scripts used for processing Calligraphr fonts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages