Commit 417d2464 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent 8e855199
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment