> The bitmap dimensions.  For a 'g' glyph opentype outline for
> instance, if I load it and render it using the LCD(RGB) related
> options, the resulting bitmap dimensions are the bounding box of the
> glyph.  Is this true for any glyph outline rendering mode
> (monochrome, grayscale..)?

I assume that you are talking about

  FT_GlyphSlot->bitmap->{rows,width,pitch}

and that you are interested in the *smallest* possible bounding box.

The answer is yes, since FreeType needs to (re)allocate the
corresponding memory.  However, this assumes some `good conduct' of
the outline – FreeType computes the bbox before rendering; if the
outline contains extremely thin spikes that cause drop-outs in B/W
mode or not enough coverage in other rendering modes, the bbox won't
be minimal (normally, it's the job of font hinting to avoid that).  In
most cases this is rather unlikely.


    Werner
_______________________________________________
Freetype mailing list
Freetype@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to