Search code examples
counttruetypeglyphfontforge

FontForge: Count of Defined Glyphs


I'm fairly new to FontForge, and I just want to merge two fonts for my specific usage.

I know how to merge two fonts from this question and I'm aware of TTF, ... 65535 lookup limits, so I'm trying to Detach & Remove Glyphs... for some glyph ranges, and for this:

I need to know how many glyph is defined, so I can decide which range to detach and remove. It seems fairly simple info, but I can not find where it is shown. is there any menu or macro to show the current number of defined glyphs in FontForge?


Solution

  • This question pops up as first Google hit, so I'll just place this for posterity, but the proper code answer is from @Jerry Penner.


    It's also possible from the program GUI to obtain the info in a quick dirty way:

    1. Reduce the number of displayed glyphs via Encoding > Compact menu
    2. Select the last glyph in your font
    3. At the top right below the menu will be displayed the glyph "number" starting from 0 (so in below picture example the total count is 270).

    Note: the number displayed is for the current compact view, not the actual glyph number in the font.

    enter image description here