35 #ifndef __GDI_FONT_ENGINE_H__ 36 #define __GDI_FONT_ENGINE_H__ 116 #define GDI_FONT_ENGINE_SSC_ENGLISH "*#0044#" 117 #define GDI_FONT_ENGINE_SSC_SCHINESE "*#0086#" 118 #define GDI_FONT_ENGINE_SSC_TCHINESE "*#0886#" 123 #define GDI_FONT_ENGINE_LANGUAGE_NAME_LENGTH 40 124 #define GDI_FONT_ENGINE_SSC_SIZE 10 125 #define GDI_FONT_ENGINE_COUNTRY_CODE_SIZE 8 126 #define GDI_FONT_ENGINE_ISO_SIZE 4 131 #define GDI_FONT_ENGINE_FONT_SMALL 0x0000 132 #define GDI_FONT_ENGINE_FONT_MEDIUM 0x0001 133 #define GDI_FONT_ENGINE_FONT_LARGE 0x0002 134 typedef uint8_t gdi_font_engine_size_t; uint8_t red
The red value.
Definition: gdi_font_engine.h:159
int32_t count
The character counter to query.
Definition: gdi_font_engine.h:169
void gdi_font_engine_set_text_color(gdi_font_engine_color_t color)
This function sets the text color.
Define the color of the font engine.
Definition: gdi_font_engine.h:157
#define GDI_FONT_ENGINE_COUNTRY_CODE_SIZE
The country code size.
Definition: gdi_font_engine.h:125
int32_t max_ascent
The distance from the baseline to the highest or upper coordinate used to place an outline point...
Definition: gdi_font_engine.h:173
int32_t max_descent
The distance from the baseline to the lowest coordinate used to place an outline point.
Definition: gdi_font_engine.h:174
Define the string information structure to query.
Definition: gdi_font_engine.h:167
uint32_t gdi_font_engine_display_string(gdi_font_engine_display_string_info_t *parameter)
This function displays the specific string.
uint8_t alpha
The alpha value.
Definition: gdi_font_engine.h:158
int32_t baseline
An imaginary line that is used to guide glyphs when rendering text.
Definition: gdi_font_engine.h:172
#define GDI_FONT_ENGINE_SSC_SIZE
The SSC size.
Definition: gdi_font_engine.h:124
uint8_t * string
A pointer to the Unicode string.
Definition: gdi_font_engine.h:168
int32_t baseline_height
The base line of the string.
Definition: gdi_font_engine.h:187
int32_t length
The string length.
Definition: gdi_font_engine.h:186
uint8_t gdi_font_engine_set_font_size(gdi_font_engine_size_t font_size)
This function sets the current font size.
int32_t width
The string width.
Definition: gdi_font_engine.h:170
int32_t advance_width
The horizontal distance to increment (for left-to-right writing) or decrement (for right-to-left writ...
Definition: gdi_font_engine.h:175
Successful.
Definition: gdi_font_engine.h:150
#define GDI_FONT_ENGINE_ISO_SIZE
The ISO size.
Definition: gdi_font_engine.h:126
void gdi_font_engine_get_font_size(gdi_font_engine_size_t *font_size)
This function gets the current font size.
uint32_t gdi_font_engine_get_string_information(gdi_font_engine_string_info_t *query)
This function gets the detailed information of the specified string.
Define the structure of the language details.
Definition: gdi_font_engine.h:193
Unsupported language.
Definition: gdi_font_engine.h:151
uint8_t blue
The blue value.
Definition: gdi_font_engine.h:161
uint8_t * string
The pointer to a Unicode string.
Definition: gdi_font_engine.h:185
Define the string information structure to display.
Definition: gdi_font_engine.h:182
gdi_font_engine_color_t gdi_font_engine_get_text_color(void)
This function gets the text color.
gdi_font_engine_status_t
Define the return status of the font engine API.
Definition: gdi_font_engine.h:149
int32_t advance_height
The vertical distance to decrement the pen position after a glyph has been renderedd.
Definition: gdi_font_engine.h:176
int32_t y
Top left y coordinate.
Definition: gdi_font_engine.h:184
int32_t x
Top left x coordinate.
Definition: gdi_font_engine.h:183
#define GDI_FONT_ENGINE_LANGUAGE_NAME_LENGTH
Define the size of the language details.
Definition: gdi_font_engine.h:123
uint8_t gdi_font_engine_size_t
Define the type of the font size.
Definition: gdi_font_engine.h:134
uint8_t green
The green value.
Definition: gdi_font_engine.h:160
int32_t height
The string height.
Definition: gdi_font_engine.h:171