зеркало из https://github.com/mozilla/pjs.git
re-enabling kerning on the mac. bug 387197. r=vlad
This commit is contained in:
Родитель
553e219f86
Коммит
b904d82939
|
@ -102,8 +102,7 @@ gfxAtsuiFont::InitMetrics(ATSUFontID aFontID, ATSFontRef aFontRef)
|
||||||
ATSUAttributeTag styleTags[] = {
|
ATSUAttributeTag styleTags[] = {
|
||||||
kATSUFontTag,
|
kATSUFontTag,
|
||||||
kATSUSizeTag,
|
kATSUSizeTag,
|
||||||
kATSUFontMatrixTag,
|
kATSUFontMatrixTag
|
||||||
kATSUKerningInhibitFactorTag
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ByteCount styleArgSizes[] = {
|
ByteCount styleArgSizes[] = {
|
||||||
|
@ -123,14 +122,11 @@ gfxAtsuiFont::InitMetrics(ATSUFontID aFontID, ATSFontRef aFontRef)
|
||||||
ATSUFontID fid = aFontID;
|
ATSUFontID fid = aFontID;
|
||||||
// make the font render right-side up
|
// make the font render right-side up
|
||||||
CGAffineTransform transform = CGAffineTransformMakeScale(1, -1);
|
CGAffineTransform transform = CGAffineTransformMakeScale(1, -1);
|
||||||
// we can't do kerning until layout draws what it measures, instead of splitting things up
|
|
||||||
Fract inhibitKerningFactor = FloatToFract(1.0);
|
|
||||||
|
|
||||||
ATSUAttributeValuePtr styleArgs[] = {
|
ATSUAttributeValuePtr styleArgs[] = {
|
||||||
&fid,
|
&fid,
|
||||||
&fSize,
|
&fSize,
|
||||||
&transform,
|
&transform,
|
||||||
&inhibitKerningFactor
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (mATSUStyle)
|
if (mATSUStyle)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче