OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_ | 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_ |
6 #define UI_GFX_FONT_RENDER_PARAMS_H_ | 6 #define UI_GFX_FONT_RENDER_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 // Returns the system's default parameters for font rendering. | 60 // Returns the system's default parameters for font rendering. |
61 GFX_EXPORT const FontRenderParams& GetDefaultFontRenderParams(); | 61 GFX_EXPORT const FontRenderParams& GetDefaultFontRenderParams(); |
62 | 62 |
63 // Returns the system's default parameters for WebKit font rendering. | 63 // Returns the system's default parameters for WebKit font rendering. |
64 // TODO(derat): Rename to GetDefaultFontRenderParamsForWebContents(). | 64 // TODO(derat): Rename to GetDefaultFontRenderParamsForWebContents(). |
65 GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams(); | 65 GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams(); |
66 | 66 |
67 // Returns the appropriate parameters for rendering the font described by the | 67 // Returns the appropriate parameters for rendering the font described by the |
68 // passed-in-arguments, any of which may be NULL. If |family_out| is non-NULL, | 68 // passed-in-arguments, any of which may be NULL. If |family_out| is non-NULL, |
69 // it will be updated to contain the recommended font family from |family_list|. | 69 // it will be updated to contain the recommended font family from |family_list|. |
70 // TODO(derat): Also accept the font style, so that its bold and italic states | 70 // |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.
| |
71 // can be passed to Fontconfig in the Linux implementation. | |
72 GFX_EXPORT FontRenderParams GetCustomFontRenderParams( | 71 GFX_EXPORT FontRenderParams GetCustomFontRenderParams( |
73 bool for_web_contents, | 72 bool for_web_contents, |
74 const std::vector<std::string>* family_list, | 73 const std::vector<std::string>* family_list, |
75 const int* pixel_size, | 74 const int* pixel_size, |
76 const int* point_size, | 75 const int* point_size, |
76 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.
| |
77 std::string* family_out); | 77 std::string* family_out); |
78 | 78 |
79 } // namespace gfx | 79 } // namespace gfx |
80 | 80 |
81 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 81 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
OLD | NEW |