]> git.sesse.net Git - vlc/commitdiff
text_style/renderer: unify default font size
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 21 Mar 2014 18:33:39 +0000 (19:33 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 25 Mar 2014 16:35:35 +0000 (17:35 +0100)
include/vlc_text_style.h
modules/text_renderer/text_renderer.c
src/misc/text_style.c

index 722387abc91567054ceb9d54224b8150754f5844..7398dd4924179dc0c6206d84670d0eb87f98b76d 100644 (file)
@@ -77,6 +77,8 @@ typedef struct
 #define STYLE_UNDERLINE   32
 #define STYLE_STRIKEOUT   64
 
+#define STYLE_DEFAULT_FONT_SIZE 22
+
 /**
  * Create a default text style
  */
index d272621e19e902dd9ac854ce7b928556ecaa8daa..36485818a6fc5bbd2bc12a3c9b317e79255f704c 100644 (file)
@@ -325,7 +325,7 @@ int HandleFontAttributes( xml_reader_t *p_xml_reader,
     uint32_t   i_font_color = 0xffffff;
     int        i_font_alpha = 255;
     uint32_t   i_karaoke_bg_color = 0x00ffffff;
-    int        i_font_size  = 24;
+    int        i_font_size  = STYLE_DEFAULT_FONT_SIZE;
 
     /* Default all attributes to the top font in the stack -- in case not
      * all attributes are specified in the sub-font
@@ -411,7 +411,7 @@ int HandleTT(font_stack_t **p_fonts, const char *p_fontfamily )
     char      *psz_unused_fontname = NULL;
     uint32_t   i_font_color = 0xffffff;
     uint32_t   i_karaoke_bg_color = 0x00ffffff;
-    int        i_font_size  = 24;
+    int        i_font_size  = STYLE_DEFAULT_FONT_SIZE;
 
     /* Default all attributes to the top font in the stack -- in case not
      * all attributes are specified in the sub-font
index 2763a25118ddb74487f22bbff95a7178d5697810..a779814ea4eb4a4e0ef8fecc2cb87292411a58a8 100644 (file)
@@ -38,7 +38,7 @@ text_style_t *text_style_New( void )
     /* 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_size = STYLE_DEFAULT_FONT_SIZE;
     p_style->i_font_color = 0xffffff;
     p_style->i_font_alpha = 0xff;
     p_style->i_style_flags = STYLE_OUTLINE;