freetype2/include/freetype
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
..
config Add 'svg' module for OT-SVG rendering. 2022-01-20 16:45:18 +00:00
internal Improve handling of color palettes. 2022-03-07 17:39:02 +01:00
freetype.h * include/freetype/freetype.h: Improve SDF documentation. 2022-03-05 16:44:23 +01:00
ftadvanc.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftbbox.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftbdf.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftbitmap.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftbzip2.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftcache.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftchapters.h More documentation on handling OT-SVG. 2022-01-23 12:23:47 +01:00
ftcid.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftcolor.h Improve handling of color palettes. 2022-03-07 17:39:02 +01:00
ftdriver.h More documentation on handling OT-SVG. 2022-01-23 12:23:47 +01:00
fterrdef.h Add 'svg' module for OT-SVG rendering. 2022-01-20 16:45:18 +00:00
fterrors.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftfntfmt.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftgasp.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftglyph.h Various minor doc fixes. 2022-02-06 21:06:52 +01:00
ftgxval.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftgzip.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftimage.h Add code to load OT-SVG glyph documents. 2022-01-20 16:45:18 +00:00
ftincrem.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftlcdfil.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftlist.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftlogging.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftlzw.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftmac.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftmm.h ftmm.h: Minor documentation improvement. 2022-02-16 14:51:44 +01:00
ftmodapi.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftmoderr.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftotval.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftoutln.h Document `FT_Outline_Decompose` degenerate segments. 2022-01-27 21:49:47 +01:00
ftparams.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftpfr.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftrender.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftsizes.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftsnames.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftstroke.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftsynth.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftsystem.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
fttrigon.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
fttypes.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
ftwinfnt.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
otsvg.h * src/svg/ftsvg.c (ft_svg_property_set): Disallow NULL pointers. 2022-01-23 19:05:15 +01:00
t1tables.h t1tables.h: Documentation improvements. 2022-02-12 07:58:43 +01:00
ttnameid.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
tttables.h Update all copyright notices. 2022-01-11 10:54:10 +01:00
tttags.h Add code to load OT-SVG glyph documents. 2022-01-20 16:45:18 +00:00