freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Quiestion about Windows Font sizes


From: David Grimbichler
Subject: [ft-devel] Quiestion about Windows Font sizes
Date: Fri, 13 Mar 2009 10:55:44 +0100

Hi all,
I'm using FreeType in my Windows project, and I have some questions about Windows font size vs FreeType FT_Set_Char_Size / FT_Set_Pixel_Sizes :

1. In Win32 API, when I want to output a text at size, for instance, 11 (in wordpad I choose 11 in the combo list box), I use CreateFont / CreateFontIndirect with lfHeight set to -11. Supposing the dpi is 96, what sizes should I use in FT_Set_Char_Size / FT_Set_Pixel_Sizes to match as close as possible the Win32-rendered font ?
(MSDN CreateFont : http://msdn.microsoft.com/en-us/library/dd183499(VS.85).aspx)

2. In Win32 API, I can create a font specifying only lfHeight, leaving lfWidth to zero. In FT_Set_Char_Size / FT_Set_Pixel_Sizes, how could I determine which width to use in order to match the Windows font size ?

Thanks in advance,
TheProphet.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]