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

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: apply review feedback 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') | 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 a6e736bfaacaf0062a368c6dd1e4005712597fa3..1b49e04220d5d594e8ec6f0086c2a6311914de9e 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 bit field of Font::FontStyle values.
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,
std::string* family_out);
} // namespace gfx
« no previous file with comments | « no previous file | ui/gfx/font_render_params_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698