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

Unified Diff: ui/gfx/font_render_params.h

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/gfx/font_list_unittest.cc ('k') | ui/gfx/font_render_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_render_params.h
diff --git a/ui/gfx/font_render_params.h b/ui/gfx/font_render_params.h
index 45a41e5018587e56ce7824cea04704712601edf0..f451cd1fa32116513460fc3d773c15f6ef31a818 100644
--- a/ui/gfx/font_render_params.h
+++ b/ui/gfx/font_render_params.h
@@ -10,6 +10,7 @@
#include "build/build_config.h"
#include "third_party/skia/include/core/SkFontLCDConfig.h"
+#include "ui/gfx/font.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -88,9 +89,12 @@ struct GFX_EXPORT FontRenderParamsQuery {
int pixel_size;
int point_size;
- // gfx::Font::FontStyle bit field, or -1 if unset.
+ // Font::FontStyle bit field, or -1 if unset.
int style;
+ // Weight of the font. Weight::NORMAL by default.
+ Font::Weight weight;
+
// The device scale factor of the display, or 0 if unset.
float device_scale_factor;
};
« no previous file with comments | « ui/gfx/font_list_unittest.cc ('k') | ui/gfx/font_render_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698