OSX use fontAttributes for better emulation of bold fonts (#501)
* using fontAttributes dictionary allows for better emulation of bold typefaces, also switch to using color from context, this allows keeping the same dict throughout, as a side effect fix font caching * reverting in order to maintain crossplatform compatibility * applying review suggestions * applying review suggestions
This commit is contained in:
@@ -2943,6 +2943,7 @@ typedef const void * CFTypeRef;
|
||||
|
||||
DECLARE_WXOSX_OPAQUE_CONST_CFREF( CFString )
|
||||
typedef struct __CFString * CFMutableStringRef;
|
||||
DECLARE_WXOSX_OPAQUE_CONST_CFREF( CFDictionary )
|
||||
|
||||
DECLARE_WXOSX_OPAQUE_CFREF( CFRunLoopSource )
|
||||
DECLARE_WXOSX_OPAQUE_CONST_CFREF( CTFont )
|
||||
|
@@ -144,6 +144,7 @@ public:
|
||||
#endif
|
||||
|
||||
CTFontRef OSXGetCTFont() const;
|
||||
CFDictionaryRef OSXGetCTFontAttributes() const;
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
WX_NSFont OSXGetNSFont() const;
|
||||
|
Reference in New Issue
Block a user