[vlc-commits] freetype: enable font fallback on Darwin

Felix Paul Kühne git at videolan.org
Mon Nov 23 16:36:39 CET 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Nov 23 15:51:10 2015 +0100| [f3d1007fc9080ee1e87ba02d7428d3bb7d61529b] | committer: Felix Paul Kühne

freetype: enable font fallback on Darwin

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

 modules/text_renderer/fonts/darwin.c |    4 ++--
 modules/text_renderer/text_layout.c  |    5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/text_renderer/fonts/darwin.c b/modules/text_renderer/fonts/darwin.c
index ec9477b..bd3b3ff 100644
--- a/modules/text_renderer/fonts/darwin.c
+++ b/modules/text_renderer/fonts/darwin.c
@@ -70,9 +70,9 @@ void addNewFontToFamily(filter_t *p_filter, CTFontDescriptorRef iter, char *path
     CFNumberGetValue(trait, kCFNumberFloatType, &traitValue);
     b_italic = traitValue > 0.03;
 
-//#ifndef NDEBUG
+#ifndef NDEBUG
     msg_Dbg(p_filter, "New font: bold %i italic %i path '%s'", b_bold, b_italic, path);
-//#endif
+#endif
     NewFont(path, 0, b_bold, b_italic, p_family);
 
     CFRelease(fontTraits);
diff --git a/modules/text_renderer/text_layout.c b/modules/text_renderer/text_layout.c
index d2b959e..73615ce 100644
--- a/modules/text_renderer/text_layout.c
+++ b/modules/text_renderer/text_layout.c
@@ -84,6 +84,11 @@
 # define HAVE_FONT_FALLBACK
 #endif
 
+/* Darwin */
+#ifdef __APPLE__
+# define HAVE_FONT_FALLBACK
+#endif
+
 /**
  * Within a paragraph, run_desc_t represents a run of characters
  * having the same font face, size, and style, Unicode script



More information about the vlc-commits mailing list