> Specifically (as an example, but this file NotoSansCJK-Regular.ttc
> behaves this way on nearly all glyphs), loading the glyph #41 with:
> 
> FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP |
> FT_LOAD_IGNORE_TRANSFORM | FT_LOAD_LINEAR_DESIGN
> 
> gives the width and height of face->glyph.metrics as 527x733 but
> adding the flag FT_LOAD_NO_RECURSE gives the size as 0x0 (however
> the bounding box remains the same).  In addition, when loading with
> FT_LOAD_NO_RECURSE both the vertical and horizontal bearings have
> both coordinates zero (without the FT_LOAD_NO_RECURSE they are
> non-zero).  In contrast, loading glyph #137 from the ever popular
> DejaVuSans.ttf, with or without the FT_LOAD_NO_RECURSE flag gives
> the size as 1204x1915.
> 
> Is this expected behavior where .ttc fonts have their bearings and
> size as 0 when loading without recursion?

This looks like a bug.  Can you provide a small stand-alone C code
snippet that I can use for debugging?  This would help enormously.


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

Reply via email to