RetroArch
Classes | Functions | Variables
vita2d_font.c File Reference
#include <vita2d.h>
#include <encodings/utf.h>
#include "../common/vita2d_common.h"
#include "../font_driver.h"
#include "../../verbosity.h"
Include dependency graph for vita2d_font.c:

Classes

struct  vita_font_t
 

Functions

static voidvita2d_font_init_font (void *data, const char *font_path, float font_size, bool is_threaded)
 
static void vita2d_font_free_font (void *data, bool is_threaded)
 
static int vita2d_font_get_message_width (void *data, const char *msg, unsigned msg_len, float scale)
 
static void vita2d_font_render_line (video_frame_info_t *video_info, vita_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 vita2d_font_render_message (video_frame_info_t *video_info, vita_font_t *font, const char *msg, float scale, const unsigned int color, float pos_x, float pos_y, unsigned text_align)
 
static void vita2d_font_render_msg (video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
 
static const struct font_glyphvita2d_font_get_glyph (void *data, uint32_t code)
 

Variables

font_renderer_t vita2d_vita_font
 

Function Documentation

◆ vita2d_font_free_font()

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

◆ vita2d_font_get_glyph()

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

◆ vita2d_font_get_message_width()

static int vita2d_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:

◆ vita2d_font_init_font()

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

◆ vita2d_font_render_line()

static void vita2d_font_render_line ( video_frame_info_t video_info,
vita_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:

◆ vita2d_font_render_message()

static void vita2d_font_render_message ( video_frame_info_t video_info,
vita_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:

◆ vita2d_font_render_msg()

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

◆ vita2d_vita_font

font_renderer_t vita2d_vita_font
Initial value:
= {
"vita2dfont",
NULL,
NULL,
}
static int vita2d_font_get_message_width(void *data, const char *msg, unsigned msg_len, float scale)
Definition: vita2d_font.c:110
static void vita2d_font_free_font(void *data, bool is_threaded)
Definition: vita2d_font.c:93
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * vita2d_font_init_font(void *data, const char *font_path, float font_size, bool is_threaded)
Definition: vita2d_font.c:36
static const struct font_glyph * vita2d_font_get_glyph(void *data, uint32_t code)
Definition: vita2d_font.c:340
static void vita2d_font_render_msg(video_frame_info_t *video_info, void *data, const char *msg, const struct font_params *params)
Definition: vita2d_font.c:265