RetroArch
Classes | Functions | Variables
caca_font.c File Reference
#include <stdlib.h>
#include <string/stdstring.h>
#include <caca.h>
#include "../font_driver.h"
#include "../../verbosity.h"
#include "../common/caca_common.h"
Include dependency graph for caca_font.c:

Classes

struct  caca_raster_t
 

Functions

static voidcaca_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static void caca_render_free_font (void *data, bool is_threaded)
 
static int caca_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static const struct font_glyphcaca_font_get_glyph (void *data, uint32_t code)
 
static void caca_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 

Variables

font_renderer_t caca_font
 

Function Documentation

◆ caca_font_get_glyph()

static const struct font_glyph* caca_font_get_glyph ( void data,
uint32_t  code 
)
static

◆ caca_get_message_width()

static int caca_get_message_width ( void data,
const char *  msg,
unsigned  msg_len,
float  scale 
)
static

◆ caca_init_font()

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

◆ caca_render_free_font()

static void caca_render_free_font ( void data,
bool  is_threaded 
)
static
Here is the call graph for this function:

◆ caca_render_msg()

static void caca_render_msg ( video_frame_info_t video_info,
void data,
const char *  msg,
const struct font_params params 
)
static
Here is the call graph for this function:

Variable Documentation

◆ caca_font

font_renderer_t caca_font
Initial value:
= {
"caca font",
NULL,
NULL,
}
static void caca_render_free_font(void *data, bool is_threaded)
Definition: caca_font.c:59
static int caca_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: caca_font.c:65
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * caca_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: caca_font.c:37
static const struct font_glyph * caca_font_get_glyph(void *data, uint32_t code)
Definition: caca_font.c:71
static void caca_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: caca_font.c:77