Article View: comp.windows.ms.programmer
Article #2730Things to do with font files
From: Stephen Chung
Date: Sat, 18 May 1991 20:24
Date: Sat, 18 May 1991 20:24
19 lines
1326 bytes
1326 bytes
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
Technical Details
Message-ID:
<1991May18.202459.26293@cunixf.cc.columbia.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!rutgers!cunixf.cc.columbia.edu!stephencShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!rutgers!cunixf.cc.columbia.edu!stephenc From: stephenc@cunixf.cc.columbia.edu (Stephen Chung) Newsgroups: comp.windows.ms.programmer Subject: Things to do with font files Message-ID: <1991May18.202459.26293@cunixf.cc.columbia.edu> Date: 18 May 91 20:24:59 GMT Organization: Columbia University Lines: 19