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.
We no longer have to take care of the 8.3 file name limit; this
allows us (a) to introduce longer, meaningful file names, and (b) to
avoid macro names in `#include' lines altogether since some
compilers (most notably Visual C++) doesn't support this properly.
*/*: Replace
#include FOO_H
with
#include <freetype/foo.h>
or something similar. Also update the documentation.