Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: Source/platform/fonts/Font.cpp

Issue 1135003004: Make small-caps work correctly with tr locale (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add back TestExpectations change Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 8081a9fe7203748160b6aa55bb062fa347b4d8f3..c41e727f40d6c6a197e68c3fc9564673d7986ca0 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -405,7 +405,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));
if (upperC != c) {
c = upperC;
variant = SmallCapsVariant;

Powered by Google App Engine
This is Rietveld 408576698