Generated by Doxygen 1.8.14
Neographics
Fonts

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_GFontInfon_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_GGlyphInfon_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__
 

Detailed Description

Get glyph information.

Macro Definition Documentation

◆ __FONT_INFO_V1_LENGTH

#define __FONT_INFO_V1_LENGTH   6

Length of the n_GFontInfo for font version 1

◆ __FONT_INFO_V2_LENGTH

#define __FONT_INFO_V2_LENGTH   8

Length of the n_GFontInfo for font version 2

Typedef Documentation

◆ n_GFont

typedef n_GFontInfo* n_GFont

Alias for user-facing API.

Enumeration Type Documentation

◆ n_GFontFeatures

Bitmasks which determine whether certain features are available in a font.

Function Documentation

◆ __attribute__()

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.

◆ n_graphics_font_draw_glyph()

void n_graphics_font_draw_glyph ( n_GContext ctx,
n_GGlyphInfo glyph,
n_GPoint  p 
)

Draw a glyph.

◆ n_graphics_font_get_glyph_info()

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)

◆ n_graphics_font_get_line_height()

uint8_t n_graphics_font_get_line_height ( n_GFont  font)

Get the line height of a given font.

Variable Documentation

◆ __attribute__

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.