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

Side by Side Diff: ui/gfx/linux_font_delegate.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, 6 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/font_unittest.cc ('k') | ui/gfx/platform_font.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LINUX_FONT_DELEGATE_H_ 5 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_
6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ 6 #define UI_GFX_LINUX_FONT_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 // Returns a LinuxFontDelegate instance for the toolkit used in 26 // Returns a LinuxFontDelegate instance for the toolkit used in
27 // the user's desktop environment. 27 // the user's desktop environment.
28 // 28 //
29 // Can return NULL, in case no toolkit has been set. (For example, if we're 29 // Can return NULL, in case no toolkit has been set. (For example, if we're
30 // running with the "--ash" flag.) 30 // running with the "--ash" flag.)
31 static const LinuxFontDelegate* instance(); 31 static const LinuxFontDelegate* instance();
32 32
33 // Returns the default font rendering settings. 33 // Returns the default font rendering settings.
34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0; 34 virtual FontRenderParams GetDefaultFontRenderParams() const = 0;
35 35
36 // Returns details about the default UI font. |style_out| holds a bitfield of 36 // Returns details about the default UI font.
37 // gfx::Font::Style values.
38 virtual void GetDefaultFontDescription( 37 virtual void GetDefaultFontDescription(
39 std::string* family_out, 38 std::string* family_out,
40 int* size_pixels_out, 39 int* size_pixels_out,
41 int* style_out, 40 bool* italic_out,
41 Font::Weight* weight_out,
42 FontRenderParams* params_out) const = 0; 42 FontRenderParams* params_out) const = 0;
43 }; 43 };
44 44
45 } // namespace gfx 45 } // namespace gfx
46 46
47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ 47 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/gfx/font_unittest.cc ('k') | ui/gfx/platform_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698