Hi all, and pardon me for posting right away! (there is no ettiquette
information at the listinfo page)
I have a task, which sounds simple enough but it is looking
surprisingly involved. I need to display some information about font
files: Mac & PC PostScript (type 1), Mac and PC TTF, and OpenType.
From all the PS/TTF files, I need the fontname (much preffered to be
as Mac displays it) and it’s weight/face details: I need to
concatenate the fontname/weights to things like “Neue Helvetica Black
Italic”, etc. But fonts seem to place/misplace names all throughout
the fontfile and a simple extraction of, for example the “postscript
full name” will usually show the wrong information.
I also need the glyphnames for any glyphs that appear in the font.
And I need the unicode, if available, so I can distinguish, for
example, latin characters from turkish, or symbol fonts (or OTFs,
etc). This last part is easy enough for me to look up from the
unicode range, I think.
It’s with opentype that things get funky. A single opentype font file
can have different faces, and different ligature substitutions for
small caps, subscripts, etc. (Its all defined in it’s layout tables)
I’m not looking forward to processing all this, it’s amazingly
complicated for such a simple thing. But I have to gather and process
all this information, and best I can tell there’s no tools around that
do this for me all in one package.
So I’m looking at Pango to do it – to me it’s just an added boon that
Ruby has a pango interface! But I’m wondering, does anyone know how
easy, or even possible this is? Can I get these informations all from
ruby-gnome2, for each of the font formats?
Thanks for reading!
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
opinions on IT & business topics through brief surveys - and earn cash