diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-03 23:01:56 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-03 23:58:09 +0200 |
commit | 06fe77331d1ad8eb2e5a158bb1cb083daaf1f910 (patch) | |
tree | fa20f6d1a71b026a79f9a5dd213d80dfccf95c11 | |
parent | 4d2a7692ef7d5cf733cb818b67be300968aa5689 (diff) |
Drop ENABLE_CORETEXT
This file is Core Text only already.
Change-Id: Ic4c1f44296eaae582091e515d3ca1b4aa227301e
-rw-r--r-- | vcl/coretext/salgdi2.cxx | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/vcl/coretext/salgdi2.cxx b/vcl/coretext/salgdi2.cxx index 74c906f52f3b..c54391230813 100644 --- a/vcl/coretext/salgdi2.cxx +++ b/vcl/coretext/salgdi2.cxx @@ -38,11 +38,7 @@ #include "coretext/salgdi2.h" #include "aqua/salframe.h" -#ifdef ENABLE_CORETEXT #include "ctfonts.hxx" -#else -#include "atsfonts.hxx" -#endif #include "fontsubset.hxx" #include "impfont.hxx" @@ -436,15 +432,9 @@ void AquaSalGraphics::GetDevFontList( ImplDevFontList* pFontList ) // through it as should be all event handlers SalData* pSalData = GetSalData(); -#ifdef ENABLE_CORETEXT SystemFontList* GetCoretextFontList(void); // forward declaration if( !pSalData->mpFontList ) pSalData->mpFontList = GetCoretextFontList(); -#else - SystemFontList* GetAtsFontList(void); // forward declaration - if( !pSalData->mpFontList ) - pSalData->mpFontList = GetAtsFontList(); -#endif // Copy all PhysicalFontFace objects contained in the SystemFontList pSalData->mpFontList->AnnounceFonts( *pFontList ); @@ -870,33 +860,6 @@ SystemFontData AquaSalGraphics::GetSysFontData( int /* nFallbacklevel */ ) const SystemFontData aSysFontData; aSysFontData.nSize = sizeof( SystemFontData ); -#ifndef ENABLE_CORETEXT - // NOTE: Native ATSU font fallbacks are used, not the VCL fallbacks. - ATSUFontID fontId; - OSStatus err; - err = ATSUGetAttribute( maATSUStyle, kATSUFontTag, sizeof(fontId), &fontId, 0 ); - if (err) fontId = 0; - aSysFontData.aATSUFontID = (void *) fontId; - - Boolean bFbold; - err = ATSUGetAttribute( maATSUStyle, kATSUQDBoldfaceTag, sizeof(bFbold), &bFbold, 0 ); - if (err) bFbold = FALSE; - aSysFontData.bFakeBold = (bool) bFbold; - - Boolean bFItalic; - err = ATSUGetAttribute( maATSUStyle, kATSUQDItalicTag, sizeof(bFItalic), &bFItalic, 0 ); - if (err) bFItalic = FALSE; - aSysFontData.bFakeItalic = (bool) bFItalic; - - ATSUVerticalCharacterType aVerticalCharacterType; - err = ATSUGetAttribute( maATSUStyle, kATSUVerticalCharacterTag, sizeof(aVerticalCharacterType), &aVerticalCharacterType, 0 ); - if (!err && aVerticalCharacterType == kATSUStronglyVertical) { - aSysFontData.bVerticalCharacterType = true; - } else { - aSysFontData.bVerticalCharacterType = false; - } -#endif - aSysFontData.bAntialias = !mbNonAntialiasedText; return aSysFontData; |