[vlc-commits] codec: libass: disable hinting (fix #14990)

Francois Cartegnie git at videolan.org
Wed Jan 25 15:53:23 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 25 15:48:56 2017 +0100| [7491ccec6eca8a8b22aa09f1fdc3a9aed4273dcc] | committer: Francois Cartegnie

codec: libass: disable hinting (fix #14990)

Native "No idea" -> Light
16be5123ac29a0f1c032f042dddbcde2438c2e0c

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

 modules/codec/libass.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 3eec9de..cf4dfe6 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -208,7 +208,6 @@ static int Create( vlc_object_t *p_this )
     ass_set_use_margins( p_renderer, false);
     //if( false )
     //    ass_set_margins( p_renderer, int t, int b, int l, int r);
-    ass_set_hinting( p_renderer, ASS_HINTING_LIGHT );
     ass_set_font_scale( p_renderer, 1.0 );
     ass_set_line_spacing( p_renderer, 0.0 );
 
@@ -240,6 +239,10 @@ static int Create( vlc_object_t *p_this )
     ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 );
 #endif
 
+    /* Anything else than NONE will break smooth img updating.
+       TODO: List and force ASS_HINTING_LIGHT for known problematic fonts */
+    ass_set_hinting( p_renderer, ASS_HINTING_NONE );
+
     /* Add a track */
     ASS_Track *p_track = p_sys->p_track = ass_new_track( p_sys->p_library );
     if( !p_track )



More information about the vlc-commits mailing list