Topic: Font matching at EMF-file display
Hello, there is a problem with font matching at usage of Japanese hieroglyphs. There is an EMF-file which contains the text with Japanese hieroglyphs and English letters. Function PlayEnhMetafile () displays them correctly. The EMF-file contains records EMREXTCREATEFONTINDIRECTW which contain the information on a used font. In our case for all lines font Arial is used, but it does not support Japanese hieroglyphs (at least that is installed on my system Windows 8.1 x64 for one language - Russian localization). Therefore I use function IMLangFontLink2:: MapFont () which selects an optimal font for the necessary language on the basis of the given font. This function selects font MS PGothic from our case instead of Arial for Japanese hieroglyphs. The problem that MS PGothic is wider, than Arial, in a consequence of that the text runs against each other. If to open this file in Paint it uses not clearly what font for display of Japanese characters. At what the text does not run against each other. Just the same result it is possible to achieve by means of function PlayEnhMetafile (). I have a suspicion that Paint uses function PlayEnhMetafile () for EMF-file conversion in a raster, but it is not known as it selects a font. Whether there are at you any thoughts how to pick up the necessary font which would support Japanese characters, but thus saved the necessary width of the text? In advance thanks.