25 #ifndef _MG_DRAWTEXT_H
26 #define _MG_DRAWTEXT_H
32 #define FONT_STYLE_PLAIN 0x00
33 #define FONT_STYLE_SQUARE 0x10
34 #define FONT_STYLE_NO_SCALE 0x80
37 #define JUSTIFY_H_START 0x00
38 #define JUSTIFY_H_END 0x01
39 #define JUSTIFY_H_CENTRE 0x02
40 #define JUSTIFY_H_JUSTIFIED 0x03
42 #define WRAP_WORDS 0x04
44 #define WRAP_VERTICAL 0x08
46 #define JFY_HZ_MASK 0x03
47 #define JFY_WRAP_MASK 0x0c
48 #define JFY_HZ_WRAP_MASK 0x0f
50 #define JUSTIFY_V_START 0x00
51 #define JUSTIFY_V_END 0x10
52 #define JUSTIFY_V_CENTRE 0x20
53 #define JUSTIFY_V_JUSTIFIED 0x30
54 #define JUSTIFY_VERTI_MASK 0x30
59 #define OBSCURED_INPUT_CHAR ('*')
60 #define ENTRY_INSERT_CHAR ('_')
61 #define ENTRY_OVERWRITE_CHAR ('<')
63 #define HK_FNT_MAGIC 0xFEFF
struct _HyperAttribs * pHyperAttribs
Define MHEG5 String type.
S_STRING font_name
Definition: mg_drawtext.h:118
U8BIT anchor_wrap
Definition: mg_drawtext.h:90
struct _DrawTextAttrib DrawTextAttrib
struct _DrawTextAttrib * pDrawTextAttrib
H_FontSize hdl
Definition: mg_drawtext.h:115
OSDColor visit_colour
Definition: mg_drawtext.h:85
U32BIT OSDColor
Definition: osdtypes.h:41
Definition: dtvstring.h:28
struct _TextString TextString
S16BIT letter_space
Definition: mg_drawtext.h:109
int16_t S16BIT
Definition: techtype.h:96
S16BIT entry_point
Definition: mg_drawtext.h:108
S16BIT top
Definition: mg_drawtext.h:68
U32BIT character_set
Definition: mg_drawtext.h:107
uint8_t U8BIT
Definition: techtype.h:93
pHyperAttribs p_ha
Definition: mg_drawtext.h:104
S16BIT MG_TextWidth(const TextString unistr, pDrawTextAttrib attrib)
Definition: mg_drawtext.c:2123
U8BIT justify
Definition: mg_drawtext.h:112
U8BIT save_colour
Definition: mg_drawtext.h:91
Definition: mg_drawtext.h:74
U16BIT caret
Definition: mg_drawtext.h:110
U16BIT len
Definition: mg_drawtext.h:76
struct _TextString * pTextString
OSDColor back_colour
Definition: mg_drawtext.h:106
Definition: mg_drawtext.h:95
U8BIT size
Definition: mg_drawtext.h:98
Definition: mg_drawtext.h:80
S_FontProp fp
Definition: mg_drawtext.h:116
OSDColor active_colour
Definition: mg_drawtext.h:84
uint16_t U16BIT
Definition: techtype.h:95
OSDColor fore_colour
Definition: mg_drawtext.h:105
Font file handling with the Freetype.
struct _HyperAttribs HyperAttribs
U16BIT width
Definition: mg_drawtext.h:69
S16BIT left
Definition: mg_drawtext.h:67
S16BIT focus_position
Definition: mg_drawtext.h:86
void * MG_DrawText(const TextString unistr, pDrawTextAttrib attrib, const VRect txt_box)
Create Surface and draw text string on it and terminate freetype library.
Definition: mg_drawtext.c:2274
U16BIT * data
Definition: mg_drawtext.h:77
OSDColor link_colour
Definition: mg_drawtext.h:83
U16BIT height
Definition: mg_drawtext.h:70
struct s_FontProp S_FontProp
U8BIT line_space
Definition: mg_drawtext.h:111
U8BIT style
Definition: mg_drawtext.h:99
union _DrawTextAttrib::@12 font
Definition: mg_drawtext.h:102
Definition: mg_drawtext.h:65
uint32_t U32BIT
Definition: techtype.h:97
S16BIT number_of_links
Definition: mg_drawtext.h:87
S16BIT index
Definition: mg_drawtext.h:97
U8BIT markup_state
Definition: mg_drawtext.h:89
void MG_DrawScreenText(const TextString unistr, pDrawTextAttrib attrib, S_SURFACE *canvas)
Single line text string drawn on existing Surface.
Definition: mg_drawtext.c:2177