diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 21:01:24 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 21:01:24 +0000 |
commit | f3dc6fbc4d1ae9591fb59bdcba591fec5a2e7187 (patch) | |
tree | 0fd4a953e5329d5f2d057c6de4563a1bde403ee5 /ui/gfx/render_text.h | |
parent | 9862082a9b4cf2affde748b230b2c2e0b3248d38 (diff) | |
download | chromium_src-f3dc6fbc4d1ae9591fb59bdcba591fec5a2e7187.zip chromium_src-f3dc6fbc4d1ae9591fb59bdcba591fec5a2e7187.tar.gz chromium_src-f3dc6fbc4d1ae9591fb59bdcba591fec5a2e7187.tar.bz2 |
Add a SkiaTextRenderer::SetFontFamilyWithStyle
RenderTextLinux::DrawVisualText use it to stick with one font familty and avoid bad glyph index problem;
BUG=119680
TEST=Verify fix for 119680 and other text should look the same as before.
Review URL: https://chromiumcodereview.appspot.com/9808098
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text.h')
-rw-r--r-- | ui/gfx/render_text.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h index d5ae4dd..1118e80 100644 --- a/ui/gfx/render_text.h +++ b/ui/gfx/render_text.h @@ -7,6 +7,7 @@ #pragma once #include <algorithm> +#include <string> #include <vector> #include "base/gtest_prod_util.h" @@ -41,6 +42,7 @@ class SkiaTextRenderer { void SetTypeface(SkTypeface* typeface); void SetTextSize(int size); void SetFont(const gfx::Font& font); + void SetFontFamilyWithStyle(const std::string& family, int font_style); void SetFontStyle(int font_style); void SetForegroundColor(SkColor foreground); void SetShader(SkShader* shader); |