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

Unified Diff: ui/gfx/font_render_params.h

Issue 403923002: Make GetCustomFontRenderParams() pass font style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove an extra assignment Created 6 years, 5 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 | « no previous file | ui/gfx/font_render_params_android.cc » ('j') | ui/gfx/font_render_params_linux.cc » ('J')
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 a6e736bfaacaf0062a368c6dd1e4005712597fa3..a63b42df3fdfe41d24940e4385e2c8996a99d4b0 100644
--- a/ui/gfx/font_render_params.h
+++ b/ui/gfx/font_render_params.h
@@ -67,13 +67,13 @@ GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams();
// Returns the appropriate parameters for rendering the font described by the
// passed-in-arguments, any of which may be NULL. If |family_out| is non-NULL,
// it will be updated to contain the recommended font family from |family_list|.
-// TODO(derat): Also accept the font style, so that its bold and italic states
-// can be passed to Fontconfig in the Linux implementation.
+// |style| optionally points to a bitmap of Font::FontStyle values.
msw 2014/07/19 03:11:51 nit: did you mean bitmask?
Daniel Erat 2014/07/19 14:29:05 i actually wasn't sure of the correct terminology
msw 2014/07/19 17:16:22 Acknowledged.
GFX_EXPORT FontRenderParams GetCustomFontRenderParams(
bool for_web_contents,
const std::vector<std::string>* family_list,
const int* pixel_size,
const int* point_size,
+ const int* style,
Daniel Erat 2014/07/19 01:34:44 i don't plan on adding any more arguments anytime
msw 2014/07/19 03:11:52 Eh, it's certainly not pretty, but it seems okay.
std::string* family_out);
} // namespace gfx
« no previous file with comments | « no previous file | ui/gfx/font_render_params_android.cc » ('j') | ui/gfx/font_render_params_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698