forked from minhngoc25a/freetype2
47cf8ebf4a
The optional 'COLR' v1 glyph-specific clip box helps upstream graphics libraries allocate a sufficiently large bitmap for a glyph without having to traverse the glyph graph for that. See https://github.com/googlefonts/colr-gradients-spec/issues/251 for background on the introduction of this specification change. * include/freetype/ftcolor.h (FT_ClipBox): New structure. (FT_Get_Color_Glyph_ClipBox): New function declaration. * include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_ClipBox_Func): New function type. (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Use it. * src/base/ftobjs.c (FT_Get_Color_Glyph_ClipBox): New function to link API with SFNT implementation. * src/sfnt/sfdriver.c (sfnt_interface): Updated. * src/sfnt/ttcolr.c (Colr): New field `clip_list`. (tt_face_load_colr): Parse global clip list offset. (tt_face_get_color_glyph_clipbox): New function to find the clip box for a glyph id from the clip list array. * src/sfnt/ttcolr.h: Updated. |
||
---|---|---|
.. | ||
ftadvanc.c | ||
ftbase.c | ||
ftbase.h | ||
ftbbox.c | ||
ftbdf.c | ||
ftbitmap.c | ||
ftcalc.c | ||
ftcid.c | ||
ftcolor.c | ||
ftdbgmem.c | ||
ftdebug.c | ||
fterrors.c | ||
ftfntfmt.c | ||
ftfstype.c | ||
ftgasp.c | ||
ftgloadr.c | ||
ftglyph.c | ||
ftgxval.c | ||
fthash.c | ||
ftinit.c | ||
ftlcdfil.c | ||
ftmac.c | ||
ftmm.c | ||
ftobjs.c | ||
ftotval.c | ||
ftoutln.c | ||
ftpatent.c | ||
ftpfr.c | ||
ftpsprop.c | ||
ftrfork.c | ||
ftsnames.c | ||
ftstream.c | ||
ftstroke.c | ||
ftsynth.c | ||
ftsystem.c | ||
fttrigon.c | ||
fttype1.c | ||
ftutil.c | ||
ftver.rc | ||
ftwinfnt.c | ||
md5.c | ||
md5.h | ||
rules.mk |