


) to give me a sample of the font at a variety of point sizes (like when you view a font file in Windows or Linux), but like I wrote, waterfall.pdf just has the header "Sample Sizes of FX Matrix 105 Mono Compr Exp Dbl UL Sub Italic" and nothing underneath that. On the Timeline go forward another 20 frames (so youre now on frame 40). I would expect the printSample('waterfall'. Using FontForge I converted the font to an SVG font (File > Generate Fonts). import fontforgeĪmb = fontforge.open('FXMatrix105MonoComprExpDblULSubItalic.sfd')įontforge.printSetup('pdf-file', 'z.pdf')Īmb.printSample('fontdisplay', 24, 'abcdefABCDEF', 'fontdisplay.pdf')Īmb.printSample('waterfall', (12, 16, 24, 36), 'abcdefABCDEF', 'waterfall.pdf')Īmb.printSample('fontsample', 24, 'abcdefABCDEF', 'fontsample.pdf') I have fiddled with the pointsize tuple on the printSample call (including not using a tuple), and a variety of values for the printSample 3rd parameter. This script works fine for printing the fontdisplay and fontsample, but the waterfall comes up with just the header "Sample Sizes of FX Matrix 105 Mono Compr Exp Dbl UL Sub Italic" and no waterfall text. I am using for documentation, specifically the sections on printSetup and printSample.

I am on ubuntu, have installed fontforge and python-fontforge. I am trying to using fontforge to handle the SFD files. Using that answer, I can use ImageMagick to generate sample images for TTF and OFD files. My desired output format would be similar to what you get when you view a font file in Windows or Gnome a sample is here from qubodup's answer in ). I am writing a Python script to go through my font collection (some TTF, some OFD, some SFD) and eventually make a single document (PDF?) with sample pages for all of them.
