Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Windows Font Substitution

Status
Not open for further replies.

ProfReynolds

Programmer
Sep 12, 2001
96
US
How can I control Windows font substitution? Is there anyway to know when Windows has substituted a font? I had a problem with a report dealing with a missing OCR font. I would rather the report had printed nothing instead! Any help would be greatly appreciated.
 
After creating the font (CreateFont or CreateFontIndirect unction) and selecting it into the DC (SelectObject), you can find out the font name by calling GetTextFace and/or it's metrics by calling GetTextMetrics.

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top