[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - vcl/coretext
Khaled Hosny
khaledhosny at eglug.org
Mon Jun 17 19:32:27 PDT 2013
vcl/coretext/ctfonts.cxx | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit 258566eb0318a850ccf85754db4c99f16134c6a3
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Tue Jun 18 00:44:51 2013 +0200
Use Core Text defaults for kerning and ligatures
Our ATSUI port did not disable kerning, so we shouldnât disable it with
Core Text, and ligature are enabled by default anyway.
Change-Id: If3ee5fd14376c7d297c288ba6761a45ce2901a1e
diff --git a/vcl/coretext/ctfonts.cxx b/vcl/coretext/ctfonts.cxx
index ab738d9..8f89afa 100644
--- a/vcl/coretext/ctfonts.cxx
+++ b/vcl/coretext/ctfonts.cxx
@@ -91,15 +91,6 @@ CTTextStyle::CTTextStyle( const FontSelectPattern& rFSD )
mpStyleDict = CFDictionaryCreateMutable( NULL, nMaxDictSize,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks );
- // set some default styles: no kerning, regular ligatures
- static const CGFloat fValZero = 0.0;
- CFNumberRef pCFFloatNumZero = CFNumberCreate( NULL, kCFNumberFloatType, &fValZero );
- CFDictionarySetValue( mpStyleDict, kCTKernAttributeName, pCFFloatNumZero );
- CFRelease( pCFFloatNumZero);
- static const int nValOne = 1;
- CFNumberRef pCFIntNumOne = CFNumberCreate( NULL, kCFNumberIntType, &nValOne );
- CFDictionarySetValue( mpStyleDict, kCTLigatureAttributeName, pCFIntNumOne );
- CFRelease( pCFIntNumOne);
CFBooleanRef pCFVertBool = pReqFont->mbVertical ? kCFBooleanTrue : kCFBooleanFalse;
CFDictionarySetValue( mpStyleDict, kCTVerticalFormsAttributeName, pCFVertBool );
More information about the Libreoffice-commits
mailing list