[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] Fractional point sizes are rounded to pixel sizes
From: |
mailinglists |
Subject: |
[Freetype] Fractional point sizes are rounded to pixel sizes |
Date: |
Mon, 13 Jan 2003 22:23:18 +0000 (GMT) |
User-agent: |
IMP/PHP IMAP webmail program 2.2.7 |
I am trying to use FreeType to render text on screen with accurate pixel
positioning and smooth animation, but I am having trouble, especially with
small font sizes. I have switched off hinting to achieve smooth scaling, but
the problem is in setting the font size.
FT_Set_Char_Size accepts fractional point sizes, but I can see from the code
that it performs rounding to set the EM square to whole pixel values.
Since the EM square is often smaller than the glyphs produced, it doesn't seem
to be possible to render text at all pixel heights.
If the EM square is set to whole pixel sizes in order to change the font, and
the EM square is smaller than the glyphs, then there is not a sufficiently fine
granularity to render the glyphs at a full range of pixel heights.
The problem is worse at small sizes, since the relative rounding error is
greater.
Can I use affine transformations to scale the glyphs to precise pixel heights?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freetype] Fractional point sizes are rounded to pixel sizes,
mailinglists <=