RetroArch
Classes | Macros | Typedefs | Functions | Variables
stb_unicode.c File Reference
#include <ctype.h>
#include <file/file_path.h>
#include <streams/file_stream.h>
#include <retro_miscellaneous.h>
#include "../font_driver.h"
#include "../../verbosity.h"
#include "../../deps/stb/stb_rect_pack.h"
#include "../../deps/stb/stb_truetype.h"
Include dependency graph for stb_unicode.c:

Classes

struct  stb_unicode_atlas_slot
 
struct  stb_unicode_font_renderer_t
 

Macros

#define STB_TRUETYPE_IMPLEMENTATION
 
#define STB_RECT_PACK_IMPLEMENTATION
 
#define STBTT_STATIC
 
#define STBRP_STATIC
 
#define STATIC   static INLINE
 
#define STB_UNICODE_ATLAS_ROWS   16
 
#define STB_UNICODE_ATLAS_COLS   16
 
#define STB_UNICODE_ATLAS_SIZE   (STB_UNICODE_ATLAS_ROWS * STB_UNICODE_ATLAS_COLS)
 

Typedefs

typedef struct stb_unicode_atlas_slot stb_unicode_atlas_slot_t
 

Functions

static struct font_atlasfont_renderer_stb_unicode_get_atlas (void *data)
 
static void font_renderer_stb_unicode_free (void *data)
 
static stb_unicode_atlas_slot_tfont_renderer_stb_unicode_get_slot (stb_unicode_font_renderer_t *handle)
 
static const struct font_glyphfont_renderer_stb_unicode_get_glyph (void *data, uint32_t charcode)
 
static bool font_renderer_stb_unicode_create_atlas (stb_unicode_font_renderer_t *self, float font_size)
 
static voidfont_renderer_stb_unicode_init (const char *font_path, float font_size)
 
static const char * font_renderer_stb_unicode_get_default_font (void)
 
static int font_renderer_stb_unicode_get_line_height (void *data)
 

Variables

font_renderer_driver_t stb_unicode_font_renderer
 

Macro Definition Documentation

◆ STATIC

#define STATIC   static INLINE

◆ STB_RECT_PACK_IMPLEMENTATION

#define STB_RECT_PACK_IMPLEMENTATION

◆ STB_TRUETYPE_IMPLEMENTATION

#define STB_TRUETYPE_IMPLEMENTATION

◆ STB_UNICODE_ATLAS_COLS

#define STB_UNICODE_ATLAS_COLS   16

◆ STB_UNICODE_ATLAS_ROWS

#define STB_UNICODE_ATLAS_ROWS   16

◆ STB_UNICODE_ATLAS_SIZE

#define STB_UNICODE_ATLAS_SIZE   (STB_UNICODE_ATLAS_ROWS * STB_UNICODE_ATLAS_COLS)

◆ STBRP_STATIC

#define STBRP_STATIC

◆ STBTT_STATIC

#define STBTT_STATIC

Typedef Documentation

◆ stb_unicode_atlas_slot_t

Function Documentation

◆ font_renderer_stb_unicode_create_atlas()

static bool font_renderer_stb_unicode_create_atlas ( stb_unicode_font_renderer_t self,
float  font_size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_stb_unicode_free()

static void font_renderer_stb_unicode_free ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_stb_unicode_get_atlas()

static struct font_atlas* font_renderer_stb_unicode_get_atlas ( void data)
static

◆ font_renderer_stb_unicode_get_default_font()

static const char* font_renderer_stb_unicode_get_default_font ( void  )
static
Here is the call graph for this function:

◆ font_renderer_stb_unicode_get_glyph()

static const struct font_glyph* font_renderer_stb_unicode_get_glyph ( void data,
uint32_t  charcode 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_stb_unicode_get_line_height()

static int font_renderer_stb_unicode_get_line_height ( void data)
static

◆ font_renderer_stb_unicode_get_slot()

static stb_unicode_atlas_slot_t* font_renderer_stb_unicode_get_slot ( stb_unicode_font_renderer_t handle)
static
Here is the caller graph for this function:

◆ font_renderer_stb_unicode_init()

static void* font_renderer_stb_unicode_init ( const char *  font_path,
float  font_size 
)
static
Here is the call graph for this function:

Variable Documentation

◆ stb_unicode_font_renderer

font_renderer_driver_t stb_unicode_font_renderer
Initial value:
= {
"stb-unicode",
}
static void * font_renderer_stb_unicode_init(const char *font_path, float font_size)
Definition: stb_unicode.c:211
static void font_renderer_stb_unicode_free(void *data)
Definition: stb_unicode.c:75
static const struct font_glyph * font_renderer_stb_unicode_get_glyph(void *data, uint32_t charcode)
Definition: stb_unicode.c:109
static const char * font_renderer_stb_unicode_get_default_font(void)
Definition: stb_unicode.c:259
static struct font_atlas * font_renderer_stb_unicode_get_atlas(void *data)
Definition: stb_unicode.c:69
static int font_renderer_stb_unicode_get_line_height(void *data)
Definition: stb_unicode.c:308