Top |
#define | HB_COLOR() |
#define | hb_color_get_alpha() |
#define | hb_color_get_blue() |
#define | hb_color_get_green() |
#define | hb_color_get_red() |
unsigned int | hb_ot_color_glyph_get_layers () |
hb_blob_t * | hb_ot_color_glyph_reference_png () |
hb_blob_t * | hb_ot_color_glyph_reference_svg () |
hb_bool_t | hb_ot_color_has_layers () |
hb_bool_t | hb_ot_color_has_palettes () |
hb_bool_t | hb_ot_color_has_png () |
hb_bool_t | hb_ot_color_has_svg () |
hb_ot_name_id_t | hb_ot_color_palette_color_get_name_id () |
unsigned int | hb_ot_color_palette_get_colors () |
unsigned int | hb_ot_color_palette_get_count () |
hb_ot_color_palette_flags_t | hb_ot_color_palette_get_flags () |
hb_ot_name_id_t | hb_ot_color_palette_get_name_id () |
unsigned int hb_ot_color_glyph_get_layers (hb_face_t *face
,hb_codepoint_t glyph
,unsigned int start_offset
,unsigned int *count
,hb_ot_color_layer_t *layers
);
face |
a font face. |
|
glyph |
a layered color glyph id. |
|
start_offset |
starting offset of layers. |
|
count |
gets number of layers available to be written on buffer and returns number of written layers. |
[inout][optional] |
layers |
layers buffer to buffer. |
[array length=count][out][optional] |
Since: 2.1.0
hb_blob_t * hb_ot_color_glyph_reference_png (hb_font_t *font
,hb_codepoint_t glyph
);
Get PNG image for a glyph.
font |
a font object, not face. upem should be set on that font object if one wants to get optimal png blob, otherwise return the biggest one |
|
glyph |
a glyph index. |
Since: 2.1.0
hb_blob_t * hb_ot_color_glyph_reference_svg (hb_face_t *face
,hb_codepoint_t glyph
);
Get SVG document for a glyph. The blob may be either plain text or gzip-encoded.
Since: 2.1.0
hb_bool_t
hb_ot_color_has_png (hb_face_t *face
);
Check whether face
has PNG glyph images (either CBDT or sbix tables).
Returns true if available, false otherwise.
Since: 2.1.0
hb_bool_t
hb_ot_color_has_svg (hb_face_t *face
);
Check whether face
has SVG glyph images.
Returns true if available, false otherwise.
Since: 2.1.0
hb_ot_name_id_t hb_ot_color_palette_color_get_name_id (hb_face_t *face
,unsigned int color_index
);
Since: 2.1.0
unsigned int hb_ot_color_palette_get_colors (hb_face_t *face
,unsigned int palette_index
,unsigned int start_offset
,unsigned int *color_count
,hb_color_t *colors
);
Retrieves the colors in a color palette.
face |
a font face. |
|
palette_index |
the index of the color palette whose colors are being requested. |
|
start_offset |
the index of the first color being requested. |
|
color_count |
on input, how many colors
can be maximally stored into the |
[inout][optional] |
colors |
an array of hb_color_t records. After calling
this function, |
[array length=color_count][out][optional] |
Since: 2.1.0
unsigned int
hb_ot_color_palette_get_count (hb_face_t *face
);
Since: 2.1.0
hb_ot_color_palette_flags_t hb_ot_color_palette_get_flags (hb_face_t *face
,unsigned int palette_index
);
face |
a font face |
|
palette_index |
the index of the color palette whose flags are being requested |
Since: 2.1.0
hb_ot_name_id_t hb_ot_color_palette_get_name_id (hb_face_t *face
,unsigned int palette_index
);
Retrieves the name id of a color palette. For example, a color font can have themed palettes like "Spring", "Summer", "Fall", and "Winter".
face |
a font face. |
|
palette_index |
the index of the color palette whose name is being requested. |
an identifier within face
's name
table.
If the requested palette has no name the result is HB_OT_NAME_ID_INVALID.
Since: 2.1.0
default indicating that there is nothing special to note about a color palette. |
||
flag indicating that the color palette is appropriate to use when displaying the font on a light background such as white. |
||
flag indicating that the color palette is appropriate to use when displaying the font on a dark background such as black. |
Since: 2.1.0