Skip to content

[truetype] Fix 'sbix' table handling.

Werner Lemberg requested to merge wl/sbix into master
  • src/sfnt/sfobjs.c (sfnt_load_face): Don't set has_outline for 'sbix' embedded bitmaps.

  • src/sfnt/ttsbit.c (tt_face_load_sbix_image): Correct calculation of 'metrics->horiBearingY'.

  • src/truetype/ttgload.c (TT_Load_Glyph): For 'sbix' embedded bitmaps, apply bbox offset and bearing values of the corresponding glyph in the 'glyf' table if it exists and has a contour.

  • include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public. (FT_FACE_FLAG_SBIX, FT_HAS_SBIX): New macros.

Fixes issue #998 (closed).

Edited by Werner Lemberg

Merge request reports