- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

Metafile fonts and the VCL

Question:

Sometimes, some text in a metafile I display from my application comes up in the wrong font. The file displays properly in xyz Graphics program. Is this a bug in the VCL?

Answer:

No. The VCL simply wraps standard Windows functions for 

displaying metafiles. As the metafile is scaled, the font  width 

and height are scaled as well. Many times, the Windows font 

mapper will simply substitute a different font that the font that 

was originally selected in an attempt to satisfy the request. 

This can also be seen in many graphics programs if you 

arbitrarily scale the metafile in different directions. Note that 

some "hi end" graphic programs actually read the metafile 

record by record, bypassing the WIndows GDI entirely to 

overcome the effects of the Windows font mapper.



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile