(OSX) Silence deprecation warnings

This commit is contained in:
Twinaphex 2016-02-26 13:44:45 +01:00
parent 33356f2df6
commit 7e641b7274
1 changed files with 13 additions and 3 deletions

View File

@ -92,10 +92,20 @@ static bool font_renderer_create_atlas(CTFontRef face, ct_font_renderer_t *handl
CTFontGetGlyphsForCharacters(face, characters, glyphs, CT_ATLAS_SIZE);
CTFontGetBoundingRectsForGlyphs(face, kCTFontDefaultOrientation,
glyphs, bounds, CT_ATLAS_SIZE);
CTFontGetBoundingRectsForGlyphs(face,
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
kCTFontOrientationDefault,
#else
kCTFontDefaultOrientation,
#endif
glyphs, bounds, CT_ATLAS_SIZE);
CTFontGetAdvancesForGlyphs(face, kCTFontDefaultOrientation,
CTFontGetAdvancesForGlyphs(face,
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
kCTFontOrientationDefault,
#else
kCTFontDefaultOrientation,
#endif
glyphs, advances, CT_ATLAS_SIZE);
ascent = CTFontGetAscent(face);