[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] BDF/PCF SetPixelSizes behavior changed?
From: |
Werner LEMBERG |
Subject: |
Re: [ft] BDF/PCF SetPixelSizes behavior changed? |
Date: |
Sun, 03 Apr 2005 10:09:55 +0200 (CEST) |
> I just updated to current CVS and observed a changed behavior in
>
> err := FT.SetPixelSizes(font.face, 0, ptsize);
>
> which fails and returns error 23 when called with ptsize = 12 for
> the font below. ftview appears to have the same problem but can
> display the font if the point size is adjusted to 15.
>
> What is correct and why?
[Thanks for the font!]
The method how a bitmap font is accessed has been refined and
synchronized. Formerly, FT_Set_Pixel_Sizes and FT_Set_Char_Size were
synonyms in FreeType's BDF and PCF interface. This has changed now.
FT_Set_Pixel_Sizes should be used to select the actual font dimensions
(the `strike', which is 15 in your case: FONT_ASCENT+FONT_DESCENT),
while FT_Set_Char_Size selects the `nominal' size (the PIXELSIZE
property which is 12 in your case).
I'll fix the documentation to avoid confusion.
Werner