RetroArch
Classes | Functions | Variables
ctr_font.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <encodings/utf.h>
#include <3ds.h>
#include <retro_math.h>
#include "../font_driver.h"
#include "../video_driver.h"
#include "../common/ctr_common.h"
#include "../drivers/ctr_gu.h"
#include "../../ctr/gpu_old.h"
#include "../../verbosity.h"
Include dependency graph for ctr_font.c:

Classes

struct  ctr_font_t
 

Functions

static voidctr_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static void ctr_font_free_font (void *data, bool is_threaded)
 
static int ctr_font_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void ctr_font_render_line (video_frame_info_t *video_info, ctr_font_t *font, const char *msg, unsigned msg_len, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void ctr_font_render_message (video_frame_info_t *video_info, ctr_font_t *font, const char *msg, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void ctr_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphctr_font_get_glyph (void *data, uint32_t code)
 

Variables

font_renderer_t ctr_font
 

Function Documentation

◆ ctr_font_free_font()

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

◆ ctr_font_get_glyph()

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

◆ ctr_font_get_message_width()

static int ctr_font_get_message_width ( void data,
const char *  msg,
unsigned  msg_len,
float  scale 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctr_font_init_font()

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

◆ ctr_font_render_line()

static void ctr_font_render_line ( video_frame_info_t video_info,
ctr_font_t font,
const char *  msg,
unsigned  msg_len,
float  scale,
const unsigned int  color,
float  pos_x,
float  pos_y,
unsigned  text_align 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctr_font_render_message()

static void ctr_font_render_message ( video_frame_info_t video_info,
ctr_font_t font,
const char *  msg,
float  scale,
const unsigned int  color,
float  pos_x,
float  pos_y,
unsigned  text_align 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctr_font_render_msg()

static void ctr_font_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

◆ ctr_font

font_renderer_t ctr_font
Initial value:
=
{
"ctrfont",
NULL,
NULL,
}
static void ctr_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: ctr_font.c:359
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int ctr_font_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: ctr_font.c:121
static const struct font_glyph * ctr_font_get_glyph(void *data, uint32_t code)
Definition: ctr_font.c:436
static void * ctr_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: ctr_font.c:50
static void ctr_font_free_font(void *data, bool is_threaded)
Definition: ctr_font.c:103