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

Unified Diff: ui/gfx/platform_font_linux.h

Issue 2031223003: Support underline on Linux again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the gtk2_ui as well. Created 4 years, 7 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 | « ui/gfx/linux_font_delegate.h ('k') | ui/gfx/platform_font_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_linux.h
diff --git a/ui/gfx/platform_font_linux.h b/ui/gfx/platform_font_linux.h
index fefa2667f42bcfcd491966747b52e9b4379c49b9..6652e5938a40d5b7f39e9bc9aa53590675f4e177 100644
--- a/ui/gfx/platform_font_linux.h
+++ b/ui/gfx/platform_font_linux.h
@@ -60,7 +60,7 @@ class GFX_EXPORT PlatformFontLinux : public PlatformFont {
PlatformFontLinux(sk_sp<SkTypeface> typeface,
const std::string& family,
int size_pixels,
- bool italic,
+ int style,
Font::Weight weight,
const FontRenderParams& params);
~PlatformFontLinux() override;
@@ -71,7 +71,7 @@ class GFX_EXPORT PlatformFontLinux : public PlatformFont {
sk_sp<SkTypeface> typeface,
const std::string& font_family,
int font_size_pixels,
- bool italic,
+ int style,
Font::Weight weight,
const FontRenderParams& params);
@@ -87,7 +87,7 @@ class GFX_EXPORT PlatformFontLinux : public PlatformFont {
// Skia actually expects a family name and not a font name.
std::string font_family_;
int font_size_pixels_;
- bool italic_;
+ int style_;
float device_scale_factor_;
// Information describing how the font should be rendered.
« no previous file with comments | « ui/gfx/linux_font_delegate.h ('k') | ui/gfx/platform_font_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698