Search code examples
pythonfontsfontforge

Alternatives to FontForge


I use python bindings for FontForge under Ubuntu. It constantly runs into crash without any clues about the reason, e.g. segmentation fault, memory mapping errors, etc.

All what I need is to read font file's (.ttf and .otf) meta data (font name, family name, version, unique id, copyright, license, designer, designer url, etc) and count the glyphs it has.

Are there any alternatives to fontforge which do above jobs in a more stable way? Any suggestions will be appreciated.


Solution

  • I had some issue with fontforge at my ubuntu x64 before too.

    I am using it for adding opentype rules, but error sometimes happen, when I try to modify those metadata.

    Latest svn is a lot better, I mean least crashing, I use following guide to install from svn.

    http://openfontlibrary.org/wiki/How_to_install_FontForge

    Another option is you only need metadata right?

    For that case, you could just save it to fontforge file as .sfd, and since it is text file, you can read it line by line from python.

    FontName: -----
    FullName: ------
    FamilyName: ------
    Weight: -----
    ...
    

    Sorry for talking about fontforge only, because Its only the one I used as font editor before.