GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_font.h File Reference

Font. More...

#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/font.h>
#include <gf_type/draw.h>
#include <stddef.h>

Go to the source code of this file.

Functions

gf_font_glyph_tgf_font_get (gf_font_t *font, int code)
 Get glyph.
 
gf_font_tgf_font_create_raw (gf_draw_t *draw, const char *path, const void *data, size_t size)
 Load font.
 
gf_font_tgf_font_create (gf_draw_t *draw, const char *path)
 Load font.
 
void gf_font_destroy (gf_font_t *font)
 Destroy font.
 

Detailed Description

Font.

Definition in file gf_font.h.

Function Documentation

◆ gf_font_create()

gf_font_t * gf_font_create ( gf_draw_t draw,
const char *  path 
)
extern

Load font.

Parameters
drawDrawing interface
pathPath
Returns
Font

Definition at line 166 of file gf_font.c.

◆ gf_font_create_raw()

gf_font_t * gf_font_create_raw ( gf_draw_t draw,
const char *  path,
const void *  data,
size_t  size 
)
extern

Load font.

Parameters
drawDrawing interface
pathPath
dataData
sizeData size
Returns
Font

Definition at line 135 of file gf_font.c.

◆ gf_font_destroy()

void gf_font_destroy ( gf_font_t font)
extern

Destroy font.

Parameters
fontFont

Definition at line 188 of file gf_font.c.

◆ gf_font_get()

gf_font_glyph_t * gf_font_get ( gf_font_t font,
int  code 
)
extern

Get glyph.

Parameters
fontFont
codeCharacter code
Returns
Glyph

Definition at line 20 of file gf_font.c.