[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Problems with pcf format using freetype in win32 env
From: |
Juliusz Chroboczek |
Subject: |
Re: [Freetype] Problems with pcf format using freetype in win32 env |
Date: |
12 Nov 2004 18:53:30 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
> error = FT_New_Face( library,
if(!thisIsASymbolFont)
FT_Select_Charmap(face, ft_encoding_unicode)
else
FT_Select_Charmap(face, ft_encoding_none)
> error = FT_Set_Pixel_Sizes(face, 0, 16);
There's no guarantee that a bitmap font has a 16 pixel strike. I'd
recommend
FT_Set_Pixel_Sizes(face,
face->available_sizes[0].width,
face->available_sizes[0].height);
after checking that face->num_fixed_sizes > 0.
By the way: accessing compressed PCF font files with FreeType will be
horribly slow. I recommend that you switch to bitmap SFNTs, which you
can generate using fonttosfnt, available in XFree86 and X.Org CVS under
xc/programs/fonttosfnt/
Juliusz