[vlc-commits] mac plugins: use PostScript names for font lookup to optimize performance

Felix Paul Kühne git at videolan.org
Wed May 7 02:51:16 CEST 2014


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed May  7 02:51:05 2014 +0200| [417d24649435886f5f6d56c9fe66a707cf7e34e6] | committer: Felix Paul Kühne

mac plugins: use PostScript names for font lookup to optimize performance

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

 npapi/vlcplugin_mac.mm      |    4 ++--
 npapi/vlcwindowless_mac.cpp |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index a06d0df..7d6c66f 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -557,7 +557,7 @@ bool VlcPluginMac::handle_event(void *event)
         keys[0] = kCTFontAttributeName;
         keys[1] = kCTForegroundColorFromContextAttributeName;
         CFTypeRef values[2];
-        values[0] = CTFontCreateWithName(CFSTR("Helvetica Neue Light"),18,NULL);
+        values[0] = CTFontCreateWithName(CFSTR("HelveticaNeue-Light"),18,NULL);
         values[1] = kCFBooleanTrue;
         CFDictionaryRef stylesDict = CFDictionaryCreate(kCFAllocatorDefault,
                                                         (const void **)&keys,
@@ -637,7 +637,7 @@ bool VlcPluginMac::handle_event(void *event)
             keys[0] = kCTFontAttributeName;
             keys[1] = kCTForegroundColorFromContextAttributeName;
             CFTypeRef values[2];
-            values[0] = CTFontCreateWithName(CFSTR("Helvetica Neue Light"),18,NULL);
+            values[0] = CTFontCreateWithName(CFSTR("HelveticaNeue-Light"),18,NULL);
             values[1] = kCFBooleanTrue;
             CFDictionaryRef stylesDict = CFDictionaryCreate(kCFAllocatorDefault,
                                                             (const void **)&keys,
diff --git a/npapi/vlcwindowless_mac.cpp b/npapi/vlcwindowless_mac.cpp
index dfc3a15..2a0aaba 100644
--- a/npapi/vlcwindowless_mac.cpp
+++ b/npapi/vlcwindowless_mac.cpp
@@ -102,7 +102,7 @@ void VlcWindowlessMac::drawNoPlayback(CGContextRef cgContext)
         keys[0] = kCTFontAttributeName;
         keys[1] = kCTForegroundColorFromContextAttributeName;
         CFTypeRef values[2];
-        values[0] = CTFontCreateWithName(CFSTR("Helvetica Neue Light"),18,NULL);
+        values[0] = CTFontCreateWithName(CFSTR("HelveticaNeue-Light"),18,NULL);
         values[1] = kCFBooleanTrue;
         CFDictionaryRef stylesDict = CFDictionaryCreate(kCFAllocatorDefault,
                                                         (const void **)&keys,
@@ -185,7 +185,7 @@ void VlcWindowlessMac::drawNoPlayback(CGContextRef cgContext)
             keys[0] = kCTFontAttributeName;
             keys[1] = kCTForegroundColorFromContextAttributeName;
             CFTypeRef values[2];
-            values[0] = CTFontCreateWithName(CFSTR("Helvetica Neue Light"),18,NULL);
+            values[0] = CTFontCreateWithName(CFSTR("HelveticaNeue-Light"),18,NULL);
             values[1] = kCFBooleanTrue;
             CFDictionaryRef stylesDict = CFDictionaryCreate(kCFAllocatorDefault,
                                                             (const void **)&keys,



More information about the vlc-commits mailing list