Index: Source/platform/mac/WebFontCache.mm |
diff --git a/Source/platform/mac/WebFontCache.mm b/Source/platform/mac/WebFontCache.mm |
index d295ad58327406c6e7680caf4acdaf93e96b02f6..b257596d2cf26a8903a0405949a5870edd5f43d1 100644 |
--- a/Source/platform/mac/WebFontCache.mm |
+++ b/Source/platform/mac/WebFontCache.mm |
@@ -189,7 +189,7 @@ static BOOL betterChoice(NSFontTraitMask desiredTraits, int desiredWeight, |
int actualWeight = [fontManager weightOfFont:font]; |
bool syntheticBold = desiredWeight >= 7 && actualWeight < 7; |
- bool syntheticItalic = (desiredTraits & NSFontItalicTrait) && !(actualTraits & NSFontItalicTrait); |
+ bool syntheticOblique = (desiredTraits & NSFontItalicTrait) && !(actualTraits & NSFontItalicTrait); |
// There are some malformed fonts that will be correctly returned by -fontWithFamily:traits:weight:size: as a match for a particular trait, |
// though -[NSFontManager traitsOfFont:] incorrectly claims the font does not have the specified trait. This could result in applying |
@@ -201,7 +201,7 @@ static BOOL betterChoice(NSFontTraitMask desiredTraits, int desiredWeight, |
if (syntheticBold) |
nonSyntheticTraits &= ~NSBoldFontMask; |
- if (syntheticItalic) |
+ if (syntheticOblique) |
nonSyntheticTraits &= ~NSItalicFontMask; |
if (nonSyntheticTraits != desiredTraits) { |