Classes | |
struct | n_GFontInfo |
struct | n_GFontHashTableEntry |
struct | n_GGlyphInfo |
Macros | |
#define | __FONT_INFO_V1_LENGTH 6 |
#define | __FONT_INFO_V2_LENGTH 8 |
Typedefs | |
typedef n_GFontInfo * | n_GFont |
Enumerations | |
enum | n_GFontFeatures { n_GFontFeature2ByteGlyphOffset = 0b1, n_GFontFeatureRLE4Encoding = 0b10 } |
Functions | |
struct n_GFontInfo | __attribute__ ((__packed__)) n_GFontInfo |
uint8_t | n_graphics_font_get_line_height (n_GFont font) |
n_GGlyphInfo * | n_graphics_font_get_glyph_info (n_GFont font, uint32_t charcode) |
void | n_graphics_font_draw_glyph (n_GContext *ctx, n_GGlyphInfo *glyph, n_GPoint p) |
Variables | |
typedef | __attribute__ |
Get glyph information.
#define __FONT_INFO_V1_LENGTH 6 |
Length of the n_GFontInfo for font version 1
#define __FONT_INFO_V2_LENGTH 8 |
Length of the n_GFontInfo for font version 2
typedef n_GFontInfo* n_GFont |
Alias for user-facing API.
enum n_GFontFeatures |
Bitmasks which determine whether certain features are available in a font.
struct n_GFontInfo __attribute__ | ( | (__packed__) | ) |
Stores basic information about a font.
An entry in the hash table, which stores a hash (computed by: codepoint modulo hash table length) and gives the offset table offset for that value.
Metadata and data of a glyph.
void n_graphics_font_draw_glyph | ( | n_GContext * | ctx, |
n_GGlyphInfo * | glyph, | ||
n_GPoint | p | ||
) |
Draw a glyph.
n_GGlyphInfo* n_graphics_font_get_glyph_info | ( | n_GFont | font, |
uint32_t | charcode | ||
) |
Get glyph information for a charcode from a font (tofu if not available)
uint8_t n_graphics_font_get_line_height | ( | n_GFont | font | ) |
Get the line height of a given font.
struct n_GGlyphInfo __attribute__ |
An entry in the hash table, which stores a hash (computed by: codepoint modulo hash table length) and gives the offset table offset for that value.
Metadata and data of a glyph.