Skip to content

Scripts for working with and analyzing kerning information (ATypI 2013)

License

Notifications You must be signed in to change notification settings

JoeUX/kern-dump

 
 

Repository files navigation

kernDump

Various scripts for analyzing, reading and writing kerning information. These can be helpful for analyzing kerning (and the loss thereof) through various stages of font production.
As Presented at ATypI Amsterdam 2013.


dumpKernFeatureFromOTF.py

Dump a viable kern feature interpreted from the GPOS table found in a compiled font.

Dependencies: getKerningPairsFromOTF.py (same repo), fontTools
Environment: command line

python dumpKernFeatureFromOTF.py font.otf
python dumpKernFeatureFromOTF.py font.ttf

getKerningPairsFromFeatureFile.py

Extract a list of all kerning pairs that would be created from a feature file.
Has the ability to use a GlyphOrderAndAliasDB file for translation of “friendly” glyph names to final glyph names (for comparison with the output of getKerningPairsFromOTF.py)

Dependencies: None
Environment: command line

python getKerningPairsFromFeatureFile.py kern.fea
python getKerningPairsFromFeatureFile.py -go <path to GlyphOrderAndAliasDB file> kern.fea


getKerningPairsFromOTF.py

Extract a list of all (flat) GPOS kerning pairs in a font, and report the absolute number of pairs.

Dependencies: fontTools
Environment: command line

python getKerningPairsFromOTF.py font.otf
python getKerningPairsFromOTF.py font.ttf

getKerningPairsFromUFO.py

Extract a list of all (flat) kerning pairs in a UFO file’s kern object, and report the absolute number of pairs.

Dependencies: defcon or Robofont
Environment: command line or Robofont

python getKerningPairsFromUFO.py font.ufo

kernInfoWindow.py

(Silly) visualization of absolute kerning distance.
Example of using the above getKerningPairsFromUFO.py from within Robofont.

Dependencies: getKerningPairsFromUFO.py (above)
Environment: Robofont

Kern Info Window

About

Scripts for working with and analyzing kerning information (ATypI 2013)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%