[comp.windows.ms.programmer] Things to do with font files

stephenc@cunixf.cc.columbia.edu (Stephen Chung) (05/19/91)

Hi NetLanders,

I am wondering, whether one can get the individual widths of characters
in a font.  The Petzold book didn't mention this; it only shows examples
using GetFontMetrics (sp?) which only returns an average width.
GetTextExtent probably works if I call it with only one character, but
there must be a better way to do it.  Also, what happens if the font
has kerning built-in?  After I displayed a line of text on the screen,
how can I get to the position of each individual character?

BTW, how can one compile a font file?  It is not mentioned in the Petzold
book either.  How can one build or modify his own font file?  And also,
are all font files restricted to at most 256 characters?

Thanks very much for all your help.  Please keep in mind that I am
a beginner Windows programmer.  I am using Borland C++, and I do not
have the SDK books (I probably should get them...).  Thanks a lot!

- Stephen