Главная страница | назад





Article #17952: Metafile fonts and the VCL

 Question and Answer Database
FAQ2952D.txt Metafile fonts and the VCL
Category :VCL
Platform :All
Product :All 32 bit
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.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99