[vlc-commits] macosx: set 'freetype-font' to the postscript name instead of the family name

Felix Paul Kühne git at videolan.org
Thu May 31 15:03:11 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu May 31 15:02:48 2012 +0200| [26303bddc76d9b5a29767b77d44b8fbece932092] | committer: Felix Paul Kühne

macosx: set 'freetype-font' to the postscript name instead of the family name

This fixes the freetype ATS lookup for some Asian fonts such as Hiragino Micho ProN with multiple weights.

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

 modules/gui/macosx/simple_prefs.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 910a4cf..f1c7b6b 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1227,7 +1227,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
 - (void)changeFont:(id)sender
 {
     NSFont * font = [sender convertFont:[[NSFontManager sharedFontManager] selectedFont]];
-    [o_osd_font_fld setStringValue:[font familyName]];
+    [o_osd_font_fld setStringValue:[font fontName]];
     [self osdSettingChanged:self];
 }
 



More information about the vlc-commits mailing list