> For this particular combination of font family and point size,
> though, the sizing of the font fails with an error
> FNT_Err_Invalid_Pixel_Size. We're requesting "MS Sans Serif" with a
> point size of 8. We've also tried a couple other sizes for this
> same font family with no luck.
>
> Any ideas? Is the problem that its a ".fon" file?
I don't see a problem, because...
> 5) This eventually calls FT_Set_Char_Size(face = <ptr>,char_width =
> 0,char_height = 512,horz_resolution = 0,vert_resolution = 0). This
> function ends up setting the char_width and char_height to both be
> 512 and both resolutions to be 72. It then calls FT_Request_Size.
>
> [...]
>
> It looks like its failing a check concerning which sizes are
> available in the font. I am able, though, to use an 8pt MS Sans
> Serif font in, say, WordPad.
you are using the wrong resolution. Windows uses 96dpi by default,
and 8pt at 96dpi is available in `sserife.fon'.
Note that in FreeType the various sizes available in `sserife.fon' are
not handled as bitmap strikes of a single face but have to be accessed
with different font indices.
Werner
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype