Perl

I am using Perl (readpipe) to grab the fontname value from a font via Fontforge. For example:

my $psfontname = readpipe("/usr/local/bin/fontforge -script /webfont/getfontname.pe font.ttf");

The problem is, Fontforge always outputs all the warnings when it loads a font, so I end up with a multiline output of values I do not want. Anyone know how to disable Fontforge doing that on file open? I am using is via command line only.

Example warnings:
Warning: Mac and Windows entries in the 'name' table differ for the
Family string in the language English (US)

I put the pre-alpha (but very usable for low enough resolutions) version of monospaced scalable variant of Unifont font to http://ilyaz.org/software/fonts.

Syndicate content Syndicate content