diff options
Diffstat (limited to 'chrome/common/gfx/chrome_font.h')
-rw-r--r-- | chrome/common/gfx/chrome_font.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/common/gfx/chrome_font.h b/chrome/common/gfx/chrome_font.h index af68aa1..0358afc 100644 --- a/chrome/common/gfx/chrome_font.h +++ b/chrome/common/gfx/chrome_font.h @@ -50,6 +50,7 @@ class ChromeFont { }; // Creates a ChromeFont given font name (e.g. arial), font size (e.g. 12). + // Skia actually expects a family name and not a font name. static ChromeFont CreateFont(const std::wstring& font_name, int font_size); ~ChromeFont() { } @@ -91,6 +92,8 @@ class ChromeFont { int style() const; // Font Name. + // It is actually a font family name, because Skia expects a family name + // and not a font name. std::wstring FontName(); // Font Size. @@ -204,7 +207,8 @@ class ChromeFont { SkTypeface *typeface_; // Additional information about the face - std::wstring font_name_; + // Skia actually expects a family name and not a font name. + std::wstring font_family_; int font_size_; int style_; |