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

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 boolean param 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 b00d0a62121b851909603c8ec9766afc4ad20620..ad58747b7dad38510bde1bb31a47937a89dc5ed8 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -427,7 +427,7 @@ GlyphData Font::glyphDataForCharacter(UChar32& c, bool mirror, bool normalizeSpa
if (variant == AutoVariant) {
if (m_fontDescription.variant() == FontVariantSmallCaps) {
- UChar32 upperC = toUpper(c);
+ UChar32 upperC = toUpper(c, m_fontDescription.locale(false));
eae 2015/05/27 15:57:18 bool includeDefault = false; UChar32 upperC = toUp
if (upperC != c) {
c = upperC;
variant = SmallCapsVariant;

Powered by Google App Engine
This is Rietveld 408576698