RetroArch
Classes | Macros | Typedefs | Functions | Variables
coretext.c File Reference
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <CoreFoundation/CFString.h>
#include <ApplicationServices/ApplicationServices.h>
#include "../font_driver.h"
Include dependency graph for coretext.c:

Classes

struct  coretext_atlas_slot
 
struct  coretext_renderer
 

Macros

#define CT_ATLAS_ROWS   16
 
#define CT_ATLAS_COLS   16
 
#define CT_ATLAS_SIZE   (CT_ATLAS_ROWS * CT_ATLAS_COLS)
 

Typedefs

typedef struct coretext_atlas_slot coretext_atlas_slot_t
 
typedef struct coretext_renderer ct_font_renderer_t
 

Functions

static struct font_atlasfont_renderer_ct_get_atlas (void *data)
 
static const struct font_glyphfont_renderer_ct_get_glyph (void *data, uint32_t charcode)
 
static void font_renderer_ct_free (void *data)
 
static bool coretext_font_renderer_create_atlas (CTFontRef face, ct_font_renderer_t *handle)
 
static voidfont_renderer_ct_init (const char *font_path, float font_size)
 
static const char * font_renderer_ct_get_default_font (void)
 
static int font_renderer_ct_get_line_height (void *data)
 

Variables

static const char * default_font = "Verdana"
 
font_renderer_driver_t coretext_font_renderer
 

Macro Definition Documentation

◆ CT_ATLAS_COLS

#define CT_ATLAS_COLS   16

◆ CT_ATLAS_ROWS

#define CT_ATLAS_ROWS   16

◆ CT_ATLAS_SIZE

#define CT_ATLAS_SIZE   (CT_ATLAS_ROWS * CT_ATLAS_COLS)

Typedef Documentation

◆ coretext_atlas_slot_t

◆ ct_font_renderer_t

Function Documentation

◆ coretext_font_renderer_create_atlas()

static bool coretext_font_renderer_create_atlas ( CTFontRef  face,
ct_font_renderer_t handle 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_renderer_ct_free()

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

◆ font_renderer_ct_get_atlas()

static struct font_atlas* font_renderer_ct_get_atlas ( void data)
static

◆ font_renderer_ct_get_default_font()

static const char* font_renderer_ct_get_default_font ( void  )
static

◆ font_renderer_ct_get_glyph()

static const struct font_glyph* font_renderer_ct_get_glyph ( void data,
uint32_t  charcode 
)
static

◆ font_renderer_ct_get_line_height()

static int font_renderer_ct_get_line_height ( void data)
static

◆ font_renderer_ct_init()

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

Variable Documentation

◆ coretext_font_renderer

font_renderer_driver_t coretext_font_renderer
Initial value:
= {
"coretext",
}
static struct font_atlas * font_renderer_ct_get_atlas(void *data)
Definition: coretext.c:56
static const struct font_glyph * font_renderer_ct_get_glyph(void *data, uint32_t charcode)
Definition: coretext.c:64
static void * font_renderer_ct_init(const char *font_path, float font_size)
Definition: coretext.c:254
static void font_renderer_ct_free(void *data)
Definition: coretext.c:78
static int font_renderer_ct_get_line_height(void *data)
Definition: coretext.c:342
static const char * font_renderer_ct_get_default_font(void)
Definition: coretext.c:337

◆ default_font

const char* default_font = "Verdana"
static