Strange, but in rare cases grid-fitting FT_Outline_Get_BBox() gives
1-2 px smaller size than those of the rendered bitmap, while
FT_Outline_Get_CBox() always works fine.

Moreover, it sometimes returns significantly larger box than
FT_Outline_Get_CBox(), for example, for glyphs U+2686 - U+2689 from
DevaVu Sans. It's pretty surprising because the tutorial says:

> We thus define the control box (also called cbox) as the smallest possible 
> rectangle that encloses all points of a given outline (including its ‘off’ 
> points). Clearly, it always includes the bbox, and the two boxes are 
> identical in most cases.

On Tue, Sep 19, 2017 at 7:43 AM, Werner LEMBERG <[email protected]> wrote:
>
>>>> Am I right that drop-out control can result in a 1-bit bitmap
>>>> smaller (but never bigger) than the 8-bit one?
>
> Ah, I mis-read your sentence, sorry.  You are correct.  Please
> disregard my previous reply.
>
>
>     Werner

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to