102 uint16_t dataRowWidth;
137 LE_FONT_RIGHTTOLEFT = 0x1,
194 const uint8_t* glyphTable;
197 #if LE_STREAMING_ENABLED == 1 203 typedef void (*leFontStream_DrawCompleteFn)(uint32_t codepoint);
235 typedef struct leFontStream
244 leFontStream_DrawCompleteFn cb;
248 #if LE_INCLUDE_DEFAULT_1BPP_FONT == 1 260 #if LE_INCLUDE_DEFAULT_8BPP_FONT == 1 480 #if LE_STREAMING_ENABLED == 1 505 leFontStream* leFont_GetStream(
const leFont* fnt);
leResult leFont_GetGlyphRect(const leFontGlyph *glyph, leRect *rect)
Get glyph rectangle.
Definition: legato_font.c:229
Color definitions and functions.
leResult leFont_DrawGlyphData_Lookup(const leFont *fnt, const leFontGlyph *glyph, const uint8_t *data, int32_t x, int32_t y, const leBlendLookupTable *tbl)
Draws a glyph using a provided font and color lookup table.
Definition: legato_font.c:383
struct leFont leFont
This struct represents a font object.
struct leRasterFont leRasterFont
This struct represents a rasterized font object.
Definition: legato_font.h:64
leFontType
This enum represents a font type.
Definition: legato_font.h:119
This struct represents a font object.
Definition: legato_font.h:156
leResult leFont_DrawGlyph_Lookup(const leFont *fnt, const leFontGlyph *glyph, int32_t x, int32_t y, const leBlendLookupTable *tbl)
Draws a glyph using a provided font and color lookup table.
Definition: legato_font.c:510
Definition: legato_font.h:63
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a stream descriptor.
Definition: legato_stream.h:60
This struct represents a rectangle.
Definition: legato_common.h:394
leResult leFont_DrawGlyphData(const leFont *fnt, const leFontGlyph *glyph, const uint8_t *data, int32_t x, int32_t y, leColor clr, uint32_t a)
Draws a glyph.
Definition: legato_font.c:300
struct leFontGlyph leFontGlyph
This struct represents a font glyph.
This struct represents a blend color lookup table.
Definition: legato_color.h:293
leResult leFont_DrawGlyph(const leFont *fnt, const leFontGlyph *glyph, int32_t x, int32_t y, leColor clr, uint32_t a)
Draws a glyph.
Definition: legato_font.c:476
This struct represents a rasterized font object.
Definition: legato_font.h:188
leBool
This enum represents booleans.
Definition: legato_common.h:146
leFontFlags
Defines font attribute flags.
Definition: legato_font.h:135
leFontBPP
This enum represents a font.
Definition: legato_font.h:61
This struct represents a font glyph.
Definition: legato_font.h:93
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:414
leResult leFont_GetGlyphInfo(const leFont *fnt, uint32_t codepoint, leFontGlyph *glyph)
Get glyph info.
Definition: legato_font.c:173
Defines a common header for all stream operations.