freetype2/src
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
..
autofit * src/autofit/afglobal.c (af_face_globals_new): Reduce zeroing. 2022-01-18 14:05:46 -05:00
base Improve handling of color palettes. 2022-03-07 17:39:02 +01:00
bdf * src/bdf/README: Updated. 2022-02-19 13:37:07 +01:00
bzip2 [bzip2] Reset bzip stream on any error. 2022-01-13 08:21:36 +01:00
cache * src/cache/ftcmru.c (FTC_MruList_New): Explain zeroing. 2022-02-02 11:32:58 -05:00
cff Minor clean-ups. 2022-01-27 22:55:34 -05:00
cid Update all copyright notices. 2022-01-11 10:54:10 +01:00
dlg Update all copyright notices. 2022-01-11 10:54:10 +01:00
gxvalid Update all copyright notices. 2022-01-11 10:54:10 +01:00
gzip Update all copyright notices. 2022-01-11 10:54:10 +01:00
lzw * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing. 2022-01-13 09:45:48 -05:00
otvalid Update all copyright notices. 2022-01-11 10:54:10 +01:00
pcf [pcf] Delay encoding allocation and avoid its zeroing. 2022-01-26 11:23:38 -05:00
pfr * src/pfr/pfrload.c (pfr_phy_font_load): Use FT_QNEW_ARRAY. 2022-01-26 15:49:24 -05:00
psaux [psaux] Full bounds check for OtherSubr 19. 2022-02-23 17:42:55 +01:00
pshinter [pshinter] Tune PSH_STRONG_THRESHOLD_MAXIMUM value. 2022-02-12 23:42:08 -05:00
psnames Update all copyright notices. 2022-01-11 10:54:10 +01:00
raster Update all copyright notices. 2022-01-11 10:54:10 +01:00
sdf [sdf] Fix corner checks and improve performance. 2022-03-05 17:00:10 +01:00
sfnt Documentation, whitespace. 2022-03-07 10:13:44 +01:00
smooth Update all copyright notices. 2022-01-11 10:54:10 +01:00
svg * src/svg/ftsvg.c (ft_svg_property_set): Disallow NULL pointers. 2022-01-23 19:05:15 +01:00
tools Update all copyright notices. 2022-01-11 10:54:10 +01:00
truetype Various minor doc fixes. 2022-02-06 21:06:52 +01:00
type1 [psaux, type1, type42] Avoid annecessary zeroing. 2022-01-20 14:47:01 -05:00
type42 [type42] Fix `FT_Get_PS_Font_Private` for this format. 2022-02-11 19:32:49 +01:00
winfonts * src/winfonts/winfnt.c (fnt_face_get_dll_font): Trace font resources. 2022-02-03 14:32:50 +00:00