forked from minhngoc25a/freetype2
9d86c63f4a
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. |
||
---|---|---|
.. | ||
services | ||
autohint.h | ||
cffotypes.h | ||
cfftypes.h | ||
compiler-macros.h | ||
ftcalc.h | ||
ftdebug.h | ||
ftdrv.h | ||
ftgloadr.h | ||
fthash.h | ||
ftmemory.h | ||
ftobjs.h | ||
ftpsprop.h | ||
ftrfork.h | ||
ftserv.h | ||
ftstream.h | ||
fttrace.h | ||
ftvalid.h | ||
psaux.h | ||
pshints.h | ||
sfnt.h | ||
svginterface.h | ||
t1types.h | ||
tttypes.h | ||
wofftypes.h |