1

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.

2

Re: Font matching at EMF-file display

Hello, VitKoff, you wrote: VK> 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). Perhaps, it is necessary to install support of Japanese language simply?

3

Re: Font matching at EMF-file display

Hello, wildwind, you wrote: W> Hello, VitKoff, you wrote: VK>> 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). W> Perhaps, it is necessary to install support of Japanese language simply? What do you mean? To install Japanese  in system?

4

Re: Font matching at EMF-file display

Hello, VitKoff, you wrote: VK> Just the same result it is possible to achieve by means of function PlayEnhMetafile (). And it is interesting if to make PlayEnhMetafile in other meta file what there the font will be?

5

Re: Font matching at EMF-file display

Hello, VitKoff, you wrote: VK> That you mean? To install Japanese  in system? In Win7 it is called "interface language".

6

Re: Font matching at EMF-file display

Hello, Alexander G, you wrote: AG> Hello, VitKoff, you wrote: VK>> Just the same result it is possible to achieve by means of function PlayEnhMetafile (). AG> And it is interesting if to make PlayEnhMetafile in other meta file what there the font will be? The font will be same as in an initial meta file, the problem consists in it and to learn how in WINAPI there is a changeover of fonts if is not present in system such as in an initial meta file with support of Japanese hieroglyphs.

7

Re: Font matching at EMF-file display

Hello, wildwind, you wrote: W> Hello, VitKoff, you wrote: VK>> That you mean? To install Japanese  in system? W> in Win7 it is called "interface language". Tried to install Japanese language of the interface, but it is ineffectual.

8

Re: Font matching at EMF-file display