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

Unified Diff: ui/chromeos/ime/candidate_view.cc

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/ime/candidate_view.cc
diff --git a/ui/chromeos/ime/candidate_view.cc b/ui/chromeos/ime/candidate_view.cc
index 4755806fe16b743f6f486d71d3f78d9a8977cb09..0d598a3701ea04f63eb3830904e8bb2d1cd6f9a1 100644
--- a/ui/chromeos/ime/candidate_view.cc
+++ b/ui/chromeos/ime/candidate_view.cc
@@ -54,8 +54,8 @@ views::Label* CreateShortcutLabel(
views::Label* shortcut_label = new views::Label;
if (orientation == ui::CandidateWindow::VERTICAL) {
- shortcut_label->SetFontList(
- shortcut_label->font_list().Derive(kFontSizeDelta, gfx::Font::BOLD));
+ shortcut_label->SetFontList(shortcut_label->font_list().Derive(
+ kFontSizeDelta, gfx::Font::NORMAL, gfx::Font::Weight::BOLD));
} else {
shortcut_label->SetFontList(
shortcut_label->font_list().DeriveWithSizeDelta(kFontSizeDelta));
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698