GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_font.h
Go to the documentation of this file.
1
7#ifndef __GF_FONT_H__
8#define __GF_FONT_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13/* Type */
14#include <gf_type/font.h>
15
16/* Engine */
17#include <gf_type/draw.h>
18
19/* Standard */
20#include <stddef.h>
21
30
40GF_EXPORT gf_font_t* gf_font_create_raw(gf_draw_t* draw, const char* path, const void* data, size_t size);
41
49GF_EXPORT gf_font_t* gf_font_create(gf_draw_t* draw, const char* path);
50
57
58#endif
Type definitions related to drawing interface.
Type definitions related to font.
gf_font_t * gf_font_create(gf_draw_t *draw, const char *path)
Load font.
Definition gf_font.c:166
void gf_font_destroy(gf_font_t *font)
Destroy font.
Definition gf_font.c:188
gf_font_glyph_t * gf_font_get(gf_font_t *font, int code)
Get glyph.
Definition gf_font.c:20
gf_font_t * gf_font_create_raw(gf_draw_t *draw, const char *path, const void *data, size_t size)
Load font.
Definition gf_font.c:135
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:198
Required headers before anything.
Drawing interface.
Definition draw.h:108
Glyph.
Definition font.h:95
Font.
Definition font.h:115