freetype2/include/freetype/internal
Werner Lemberg 9d86c63f4a Improve handling of color palettes.
This commit adds new functions to streamline palette access:

  FT_Palette_Set: Set a user-defined palette.
  FT_Palette_Get: Get palette and palette index.
  FT_Palette_Get_Foreground_Color: Get foreground color.

Fixes issue #1134.

* include/freetype/internal/tttypes.h (TT_FaceRec): Change type of
`palette_index` to `FT_Int`.  Negative values now represent user-defined
palettes.

* src/base/ftcolor.c (FT_Palette_Set, FT_Palette_Get,
FT_Palette_Get_Foreground_Color): New functions.

* include/freetype/ftcolor.h: Updated.
2022-03-07 17:39:02 +01:00
..
services Update all copyright notices. 2022-01-11 10:54:10 +01:00
autohint.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
cffotypes.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
cfftypes.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
compiler-macros.h Add Watcom C/C++ calling. 2022-01-15 22:44:28 -05:00
ftcalc.h Add Watcom C/C++ support. 2022-01-14 22:07:44 -05:00
ftdebug.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftdrv.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftgloadr.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
fthash.h Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
ftmemory.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftobjs.h Add code to load OT-SVG glyph documents. 2022-01-20 16:45:18 +00:00
ftpsprop.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftrfork.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftserv.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftstream.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
fttrace.h Add 'svg' module for OT-SVG rendering. 2022-01-20 16:45:18 +00:00
ftvalid.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
psaux.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
pshints.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
sfnt.h Add code to load OT-SVG glyph documents. 2022-01-20 16:45:18 +00:00
svginterface.h Add 'svg' module for OT-SVG rendering. 2022-01-20 16:45:18 +00:00
t1types.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
tttypes.h Improve handling of color palettes. 2022-03-07 17:39:02 +01:00
wofftypes.h Update all copyright notices. 2022-01-11 10:54:10 +01:00