Chromium Code Reviews| Index: Source/platform/fonts/Font.cpp |
| diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp |
| index b00d0a62121b851909603c8ec9766afc4ad20620..b88de99981d3ade1097251b536938d37a6cec794 100644 |
| --- a/Source/platform/fonts/Font.cpp |
| +++ b/Source/platform/fonts/Font.cpp |
| @@ -427,7 +427,8 @@ GlyphData Font::glyphDataForCharacter(UChar32& c, bool mirror, bool normalizeSpa |
| if (variant == AutoVariant) { |
| if (m_fontDescription.variant() == FontVariantSmallCaps) { |
| - UChar32 upperC = toUpper(c); |
| + bool includeDefault = false; |
| + UChar32 upperC = toUpper(c, m_fontDescription.locale(includeDefault).characters8()); |
|
tkent
2015/06/02 22:42:19
Why did you add .characters8()? It's wrong.
|
| if (upperC != c) { |
| c = upperC; |
| variant = SmallCapsVariant; |