freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] The fastest way to query size of a rendered bitmap


From: Lawrence D'Oliveiro
Subject: Re: [ft] The fastest way to query size of a rendered bitmap
Date: Sat, 16 Sep 2017 09:14:13 +1200

On Fri, 15 Sep 2017 20:30:02 +0300, Daniel Plakhotich wrote:

> But I'm a bit confused by The FreeType Tutorial (II. Managing
> Glyphs: 4. Simple Text Rendering: Kerning and Centering), which says:
> 
>> In general, the above function does not compute an exact bounding
>> box of a string! As soon as hinting is involved, glyph dimensions
>> must be derived from the resulting outlines. For anti-aliased
>> pixmaps, FT_Outline_Get_BBox then yields proper results. In case
>> you need 1-bit monochrome bitmaps, it is even necessary to actually
>> render the glyphs because the rules for the conversion from outline
>> to bitmap can also be controlled by hinting instructions.  
> 
> Why it says the rendering is necessary for 1-bit bitmaps, but not
> 8-bit? Maybe I missed something?

Perhaps because hinting is more important when you don’t have
anti-aliasing as well.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]