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

Unified Diff: chrome/browser/chromeos/login/helper.h

Issue 5180002: Adjust default font sizes for new hand hinted fonts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - textbutton header Created 10 years, 1 month 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: chrome/browser/chromeos/login/helper.h
diff --git a/chrome/browser/chromeos/login/helper.h b/chrome/browser/chromeos/login/helper.h
index f69d3fcaa3d1fcbc4add2e57d3f670f4d2d98964..de65bcd205f727bc7f4c65799829df8c93af565a 100644
--- a/chrome/browser/chromeos/login/helper.h
+++ b/chrome/browser/chromeos/login/helper.h
@@ -41,7 +41,7 @@ views::Painter* CreateBackgroundPainter();
// |size| is not empty. Otherwise the whole monitor is occupied.
gfx::Rect CalculateScreenBounds(const gfx::Size& size);
-// Corrects font size for NativeButton control.
+// Corrects font size for Label control.
void CorrectLabelFontSize(views::Label* label);
// Corrects font size for NativeButton control.
@@ -106,8 +106,16 @@ class WideButton : public views::NativeButton {
} // namespace login
-// Font size correction in points for login/oobe textfields/buttons/title.
+// Font size correction in points for login/oobe controls.
+#if defined(CROS_FONTS_USING_BCI)
+const int kFontSizeCorrectionDelta = 1;
+const int kUnselectedUsernameFontDelta = 0;
+const int kWelcomeTitleFontDelta = 5;
+#else
const int kFontSizeCorrectionDelta = 2;
+const int kUnselectedUsernameFontDelta = 1;
+const int kWelcomeTitleFontDelta = 5;
+#endif
// New pod sizes.
const int kNewUserPodFullWidth = 372;
« no previous file with comments | « chrome/browser/chromeos/input_method/candidate_window.cc ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698