17 #if !defined VG_FREETYPE_H
20 #if defined __cplusplus
26 #if defined VG_FEATURE_FONT && \
27 (defined VG_FEATURE_FONT_FREETYPE_VECTOR || defined VG_FEATURE_FONT_FREETYPE_BITMAP) && \
28 (VG_FEATURE_FONT == VG_FEATURE_FONT_FREETYPE_VECTOR || VG_FEATURE_FONT == VG_FEATURE_FONT_FREETYPE_BITMAP)
76 bool fill_rule_even_odd,
125 jfloat *left, jfloat *right);
176 jfloat size,
const jfloat *matrix, uint32_t color, jfloat letter_spacing, jfloat radius,
177 jint direction,
void *user_data);
187 jint VG_FREETYPE_IMPL_convert_color(jint color);
Map a jbyte array that represents a path.
MicroEJ MicroVG library low level API: enable some features according to the hardware capacities.
bool VG_FREETYPE_string_span(const jchar *text, jint length, jint face_handle, jfloat letter_spacing_font_units, jfloat *left, jfloat *right)
Folds the ink of a string and returns its two extreme edges.
void VG_FREETYPE_initialize(void)
Initializes the lowlevel font library.
jfloat VG_FREETYPE_get_scale(jint face_handle, jfloat size)
Computes the scale that converts font units to pixels at the given size.
jfloat VG_FREETYPE_string_width(jchar *text, jint length, jint face_handle, jfloat size, jfloat letter_spacing)
Measures the width of a text for the specified font and size.
jint VG_FREETYPE_draw_string(VG_FREETYPE_draw_glyph_t drawer, const jchar *text, jint length, jint face_handle, jfloat size, const jfloat *matrix, uint32_t color, jfloat letter_spacing, jfloat radius, jint direction, void *user_data)
Draws a string using the Freetype engine along a line or a circle, with a color or a linear gradient....
jint(* VG_FREETYPE_draw_glyph_t)(VG_PATH_HEADER_t *path, jfloat *matrix, uint32_t color, bool fill_rule_even_odd, void *user_data)
Function to draw a character element: a glyph. A glyph is a vectorial path.
MicroEJ MicroVG library low level API: implementation of Path.