[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:12:29 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu May 31 15:02:48 2012 +0200| [89bb8968fa0d973be81c6def9a94ca05b48b2e41] | 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.
(cherry picked from commit 26303bddc76d9b5a29767b77d44b8fbece932092)

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

 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 c236a2c..2f27247 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1221,7 +1221,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