[vlc-commits] freetype: add android default font
Sébastien Toque
git at videolan.org
Fri May 25 00:40:42 CEST 2012
vlc | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu May 24 22:14:11 2012 +0200| [bc68265582ca24d9b6a67adcda0b1e26f191d430] | committer: Jean-Baptiste Kempf
freetype: add android default font
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc68265582ca24d9b6a67adcda0b1e26f191d430
---
modules/text_renderer/freetype.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index b3b337d..cb72370 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -57,6 +57,9 @@
#elif defined( HAVE_MAEMO )
# define DEFAULT_FONT_FILE "/usr/share/fonts/nokia/nosnb.ttf"
# define DEFAULT_FAMILY "Nokia Sans Bold"
+#elif defined( __ANDROID__ )
+# define DEFAULT_FONT_FILE "/system/fonts/DroidSans-Bold.ttf"
+# define DEFAULT_FAMILY "Droid Sans Bold"
#else
# define DEFAULT_FONT_FILE "/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf"
# define DEFAULT_FAMILY "Serif Bold"
More information about the vlc-commits
mailing list