Hi everyone
It only took me a few minutes and a dozen WTHs, and WTFs to understand it.
:)
Basically, this guy has the following problems:
1) He doesn't understands that the only way to open/render a font using FT
is to provide the full filename. He would like to open fonts by specifying
their family name, and their style. On windows he can enumerate the active
font families, but he won't get their filenames.
The easiest way to find the location of the installed font files is to look
up them in the registry. ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts")
2) I didn't understood the first part, but it might be a kerning or open
type layout related problem (it should be handled by a different library
like Harfbuzz). The second part, the problem that text rendered with FT is
not the same size as text rendered with GDI might be a DPI related problem.
The horizontal and vertical resolution must be set to the correct value when
he calls FT_Set_Char_Size.
3) Read the answer for the 1st question.
2011/7/4 Werner LEMBERG <[email protected]>
>
> Please help this guy with his interesting grammar :-)
>
>
> Werner
>
>
>
> ---------- Forwarded message ----------
> From: 张玲春 <[email protected]>
> To: [email protected]
> Date: Mon, 4 Jul 2011 11:49:51 +0800 (CST)
> Subject: freetype2 problem
> 1) How to read the WINDOWS system fonts, such as how to use FREETYPE2
> display using Times New Roman, FREETYPE2 interfaces is to directly enter the
> file path of the font. However, some fonts, such as Arial, Times New Roman
> is a new file, and the interface with FREETYPE2 can be found in this
> document, there are three kinds of fonts, but how do I specify it?
>
> 2) If you use the same font, the provisions of the same size. I found the
> display not the same effect and WINDOWS, and some words about some words much
> worse. Such as Times New Roman, Chinese still more like a show, showing the
> difference in English too, FREETYPE2 the very poor. Another example is some
> of the font, set the size of the larger, FREETYPE2's on a much larger than
> WINDOWS.
>
> 3) Bold, italics how to set. To the same effect as we go and WINDOWS
>
>
> _______________________________________________
> Freetype mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/freetype
>
>
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype