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

Unified Diff: ui/views/examples/multiline_example.cc

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further Mac and Linux fixes. Created 4 years, 9 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: ui/views/examples/multiline_example.cc
diff --git a/ui/views/examples/multiline_example.cc b/ui/views/examples/multiline_example.cc
index d01b31e2d910d744ea12a6a3f9f9403892bebfdb..cf3264f8d2d4bda0f73d6c904e053e456c63aab8 100644
--- a/ui/views/examples/multiline_example.cc
+++ b/ui/views/examples/multiline_example.cc
@@ -101,8 +101,8 @@ class MultilineExample::RenderTextView : public View {
render_text_->ApplyStyle(gfx::DIAGONAL_STRIKE, true, color_range);
render_text_->SetStyle(gfx::UNDERLINE, false);
render_text_->ApplyStyle(gfx::UNDERLINE, true, color_range);
- render_text_->ApplyStyle(gfx::BOLD, true, bold_range);
render_text_->ApplyStyle(gfx::ITALIC, true, italic_range);
+ render_text_->ApplyWeight(gfx::Font::Weight::BOLD, bold_range);
InvalidateLayout();
}

Powered by Google App Engine
This is Rietveld 408576698