Kaydet (Commit) 08e7b88d authored tarafından Khaled Hosny's avatar Khaled Hosny

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
üst a3703190
......@@ -94,15 +94,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 );
......
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