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

Side by Side Diff: ui/gfx/linux_font_delegate.h

Issue 406493002: linux: Get font DPI from GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: inline initialization of a static variable 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | ui/gfx/pango_util.cc » ('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 <string> 8 #include <string>
9 9
10 #include "ui/gfx/font_render_params.h" 10 #include "ui/gfx/font_render_params.h"
(...skipping 24 matching lines...) Expand all
35 // What sort of text hinting should we apply? 35 // What sort of text hinting should we apply?
36 virtual FontRenderParams::Hinting GetHintingStyle() const = 0; 36 virtual FontRenderParams::Hinting GetHintingStyle() const = 0;
37 37
38 // What sort of subpixel rendering should we perform. 38 // What sort of subpixel rendering should we perform.
39 virtual FontRenderParams::SubpixelRendering 39 virtual FontRenderParams::SubpixelRendering
40 GetSubpixelRenderingStyle() const = 0; 40 GetSubpixelRenderingStyle() const = 0;
41 41
42 // Returns the Pango description for the default UI font. The format matches 42 // Returns the Pango description for the default UI font. The format matches
43 // that returned by pango_font_description_to_string(). 43 // that returned by pango_font_description_to_string().
44 virtual std::string GetDefaultFontDescription() const = 0; 44 virtual std::string GetDefaultFontDescription() const = 0;
45
46 // Returns the resolution (as pixels-per-inch) that should be used to convert
47 // font sizes between points and pixels. -1 is returned if the DPI is unset.
48 virtual double GetFontDPI() const = 0;
45 }; 49 };
46 50
47 } // namespace gfx 51 } // namespace gfx
48 52
49 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_ 53 #endif // UI_GFX_LINUX_FONT_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | ui/gfx/pango_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698