[vlc-commits] libass: on Winstore apps we need to use the default font

Steve Lhomme git at videolan.org
Mon May 16 12:14:41 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at gmail.com> | Fri Jan 22 15:00:25 2016 +0100| [f8ffb254c52a2a656fe24d31e1377ec209034fba] | committer: Jean-Baptiste Kempf

libass: on Winstore apps we need to use the default font

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/libass.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 3eec9de..1f6697e 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -218,6 +218,9 @@ static int Create( vlc_object_t *p_this )
 #elif defined( __APPLE__ )
     const char *psz_font = NULL; /* We don't ship a default font with VLC */
     const char *psz_family = "Helvetica Neue"; /* Use HN if we can't find anything more suitable - Arial is not on all Apple platforms */
+#elif VLC_WINSTORE_APP
+    const char *psz_font = "segoeui.ttf";
+    const char *psz_family = "Segoe UI";
 #else
     const char *psz_font = NULL; /* We don't ship a default font with VLC */
     const char *psz_family = "Arial"; /* Use Arial if we can't find anything more suitable */



More information about the vlc-commits mailing list