![]() |
MHEG-5
19.3.0
MHEG-5 Documentation
|
MHEG text render that uses the Freetype font library. More...
#include <stdio.h>
#include <string.h>
#include "stb_osd.h"
#include "mg_font.h"
#include "mg_drawtext.h"
#include "glue_memory.h"
#include "glue_debug.h"
#include "mg_osd.h"
#include "osd_utils.h"
#include "glue_assert.h"
Go to the source code of this file.
Classes | |
struct | _LineLimit |
struct | _CharData |
struct | s_properties |
Typedefs | |
typedef struct _LineLimit | LineLimit |
typedef struct _CharData | CharData |
typedef struct s_properties | S_PROPERTIES |
Enumerations | |
enum | EBreakState { NO_BREAK, HAD_BREAK, BREAKING, NEW_LINE, OVER_RUN } |
Functions | |
void | ProcessNewLine (S_PROPERTIES *pp, CharData *chars, S_FontSize *f_sz_data, U16BIT line_num, U8BIT justify) |
Process for adding a new line. More... | |
void * | MG_DrawUKText (const TextString unistr, pDrawTextAttrib attrib, const VRect txt_box) |
Create Surface and draw text string on it and terminate freetype library. More... | |
S16BIT | MG_TextWidth (const TextString unistr, pDrawTextAttrib attrib) |
void | MG_DrawScreenText (const TextString unistr, pDrawTextAttrib attrib, S_SURFACE *canvas) |
Single line text string drawn on existing Surface. More... | |
void * | MG_DrawText (const TextString unistr, pDrawTextAttrib attrib, const VRect txt_box) |
Create Surface and draw text string on it and terminate freetype library. More... | |
MHEG text render that uses the Freetype font library.
Definition in file mg_drawtext.c.
void MG_DrawScreenText | ( | const TextString | unistr, |
pDrawTextAttrib | attrib, | ||
S_SURFACE * | canvas | ||
) |
Single line text string drawn on existing Surface.
unistr | Unicode String |
attrib | Attributes on the string (including font data) |
canvas | Surface |
Definition at line 2178 of file mg_drawtext.c.
void* MG_DrawText | ( | const TextString | unistr, |
pDrawTextAttrib | attrib, | ||
const VRect | txt_box | ||
) |
Create Surface and draw text string on it and terminate freetype library.
unistr | Unicode String |
attrib | Attributes on the string (including font data) |
txt_box | Rectangle in SD pixel size |
Definition at line 2275 of file mg_drawtext.c.
void* MG_DrawUKText | ( | const TextString | unistr, |
pDrawTextAttrib | attrib, | ||
const VRect | txt_box | ||
) |
Create Surface and draw text string on it and terminate freetype library.
unistr | Unicode String |
attrib | Attributes on the string (including font data) |
txt_box | Rectangle in SD pixel size |
Definition at line 1953 of file mg_drawtext.c.
S16BIT MG_TextWidth | ( | const TextString | unistr, |
pDrawTextAttrib | attrib | ||
) |
unistr | Unicode String |
attrib | Attributes on the string (including font data) |
Definition at line 2124 of file mg_drawtext.c.
void ProcessNewLine | ( | S_PROPERTIES * | pp, |
CharData * | chars, | ||
S_FontSize * | f_sz_data, | ||
U16BIT | line_num, | ||
U8BIT | justify | ||
) |
Process for adding a new line.
. |
Definition at line 1163 of file mg_drawtext.c.