typedef struct
{
char * psz_fontname; /**< The name of the font */
+ char * psz_monofontname; /**< The name of the mono font */
int i_font_size; /**< The font size in pixels */
int i_font_color; /**< The color of the text 0xRRGGBB
(native endianness) */
/* initialize to default text style */
p_style->psz_fontname = NULL;
+ p_style->psz_monofontname = NULL;
p_style->i_font_size = 22;
p_style->i_font_color = 0xffffff;
p_style->i_font_alpha = 0xff;
if( p_src->psz_fontname )
p_dst->psz_fontname = strdup( p_src->psz_fontname );
+ if( p_src->psz_monofontname )
+ p_dst->psz_monofontname = strdup( p_src->psz_fontname );
+
return p_dst;
}
{
if( p_style )
free( p_style->psz_fontname );
+ if( p_style )
+ free( p_style->psz_monofontname );
free( p_style );
}