Color glyph framework and rendering (1/3).

* include/freetype/fttypes.h (FT_Color): Move here...
* include/freetype/ftcolor.h (FT_Color): ...from here.
This commit is contained in:
Alexei Podtelezhnikov 2018-12-11 23:15:49 -05:00
parent 3e8a2283f5
commit aec5bdb43b
3 changed files with 44 additions and 37 deletions

View File

@ -1,3 +1,10 @@
2018-12-11 Alexei Podtelezhnikov <apodtele@gmail.com>
Color glyph framework and rendering (1/3).
* include/freetype/fttypes.h (FT_Color): Move here...
* include/freetype/ftcolor.h (FT_Color): ...from here.
2018-12-11 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.

View File

@ -49,43 +49,6 @@ FT_BEGIN_HEADER
*/
/**************************************************************************
*
* @struct:
* FT_Color
*
* @description:
* This structure models a BGRA color value of a `CPAL` palette entry.
*
* The used color space is sRGB; the colors are not pre-multiplied, and
* alpha values must be explicitly set.
*
* @fields:
* blue ::
* Blue value.
*
* green ::
* Green value.
*
* red ::
* Red value.
*
* alpha ::
* Alpha value, giving the red, green, and blue color's opacity.
*
* @since:
* 2.10
*/
typedef struct FT_Color_
{
FT_Byte blue;
FT_Byte green;
FT_Byte red;
FT_Byte alpha;
} FT_Color;
/**************************************************************************
*
* @enum:

View File

@ -395,6 +395,43 @@ FT_BEGIN_HEADER
} FT_Matrix;
/**************************************************************************
*
* @struct:
* FT_Color
*
* @description:
* This structure models a BGRA color value.
*
* The used color space is sRGB; the colors are not pre-multiplied, and
* alpha values must be explicitly set.
*
* @fields:
* blue ::
* Blue value.
*
* green ::
* Green value.
*
* red ::
* Red value.
*
* alpha ::
* Alpha value, giving the red, green, and blue color's opacity.
*
* @since:
* 2.10
*/
typedef struct FT_Color_
{
FT_Byte blue;
FT_Byte green;
FT_Byte red;
FT_Byte alpha;
} FT_Color;
/**************************************************************************
*
* @struct: