[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Malfunction ???
From: |
Werner LEMBERG |
Subject: |
Re: Malfunction ??? |
Date: |
Tue, 24 Oct 2000 20:23:53 +0200 (CEST) |
> The path Is `right' asked, but as you can see in graphics that I
> have attached, the B letter (from my windows time-news-roman) is not
> seen correctly.
Strange. Since ftview works fine with this font even for smallest
resolutions (both the autohinter and the TT hinter) I suspect a bug in
your code. Have you tried the latest FreeType 2 snapshot?
> My second question: How Can I obtain a font of 8x8 REAL PIXELS ?, or in
> other words, what are the parameters to functions. Actually in my code
> is:
> ...
>
> error = FT_Set_Char_Size( ... )
> error = FT_Set_Pixel_Sizes( ... )
Basically, don't do that. If you need an 8x8 font, use a bitmap font.
*All* TrueType font (which doesn't have embedded bitmap glyphs) will
look ugly at that small size.
For TrueType fonts, only FT_Set_Char_Size() works (we are in the
process of fixing this) -- currently, don't use FT_Set_Pixel_Sizes()
with scalable fonts.
The formula to compute the `pixel per EM' value (this is approx. the
width of the glyph `M') is:
ppem = size * resolution / 72
If you use the default resolution of 72dpi, specifying a size of 8pt
gives a ppem value of 8.
Werner