vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Aug  5 
19:53:55 2015 +0200| [6e0c141cfd5fa9306c66815ac2694d42b038d77e] | committer: 
Francois Cartegnie

codec: cc: remove font forcing

Setting up font name can't't force font type since
monotype font switch isn't handled by renderer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e0c141cfd5fa9306c66815ac2694d42b038d77e
---

 modules/codec/cc.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index f408e07..14b2056 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -945,9 +945,6 @@ static text_segment_t * Eia608TextLine( struct 
eia608_screen *screen, int i_row,
     /* Search the start */
     i_start = 0;
 
-    /* Ensure we get a monospaced font (required for accurate positioning */
-    p_segment->style->psz_monofontname = strdup("Courier");
-
     /* Convert leading spaces to non-breaking so that they don't get
        stripped by the RenderHtml routine as regular whitespace */
     while( i_start < EIA608_SCREEN_COLUMNS && p_char[i_start] == ' ' ) {
@@ -986,7 +983,6 @@ static text_segment_t * Eia608TextLine( struct 
eia608_screen *screen, int i_row,
             }
 
             /* start segment with new style */
-            p_segment->style->psz_monofontname = strdup("Courier");
             if(font & EIA608_FONT_ITALICS)
                 p_segment->style->i_style_flags |= STYLE_ITALIC;
             if(font & EIA608_FONT_UNDERLINE)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to