freetype2/src/sfnt
Dominik Röttsches 47cf8ebf4a [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table.
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.
2021-08-07 14:44:05 +02:00
..
module.mk Update all copyright notices. 2021-01-17 07:18:48 +01:00
pngshim.c * src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro. 2021-05-01 09:22:26 -04:00
pngshim.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
rules.mk Update all copyright notices. 2021-01-17 07:18:48 +01:00
sfdriver.c [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table. 2021-08-07 14:44:05 +02:00
sfdriver.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
sferrors.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
sfnt.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
sfobjs.c [sfnt] Additional guards on the POST table. 2021-05-16 23:12:01 -04:00
sfobjs.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
sfwoff.c [sfnt] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. 2021-04-23 19:22:51 -04:00
sfwoff.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
sfwoff2.c [woff2] Avoid some memory zeroing. 2021-05-01 09:09:52 -04:00
sfwoff2.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttbdf.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttbdf.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttcmap.c [sfnt] Sanitize cmap4 table better. 2021-06-08 15:26:41 +02:00
ttcmap.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttcmapc.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttcolr.c [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table. 2021-08-07 14:44:05 +02:00
ttcolr.h [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table. 2021-08-07 14:44:05 +02:00
ttcpal.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttcpal.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttkern.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttkern.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttload.c [sfnt] Additional guards on the POST table. 2021-05-16 23:12:01 -04:00
ttload.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttmtx.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttmtx.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttpost.c * Version 2.11.0 released. 2021-07-19 18:07:51 +02:00
ttpost.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttsbit.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2021-02-04 07:46:46 +01:00
ttsbit.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
woff2tags.c Update all copyright notices. 2021-01-17 07:18:48 +01:00
woff2tags.h Update all copyright notices. 2021-01-17 07:18:48 +01:00