[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: |
Daniel Plakhotich |
Subject: |
Re: [ft] The fastest way to query size of a rendered bitmap |
Date: |
Sun, 19 Nov 2017 18:57:16 +0200 |
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 <address@hidden> 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
- Re: [ft] The fastest way to query size of a rendered bitmap,
Daniel Plakhotich <=