summaryrefslogtreecommitdiffstats
path: root/app/gfx/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/font.h')
-rw-r--r--app/gfx/font.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/gfx/font.h b/app/gfx/font.h
index ef03d99..e0e075a 100644
--- a/app/gfx/font.h
+++ b/app/gfx/font.h
@@ -27,6 +27,7 @@ class NSFont;
#endif
typedef NSFont* NativeFont;
#elif defined(OS_LINUX)
+typedef struct _PangoFontDescription PangoFontDescription;
class SkTypeface;
typedef SkTypeface* NativeFont;
#else // null port.
@@ -130,6 +131,10 @@ class Font {
Font& operator=(const Font& other);
// Setup a Skia context to use the current typeface
void PaintSetup(SkPaint* paint) const;
+
+ // Converts |gfx_font| to a new pango font. Free the returned font with
+ // pango_font_description_free().
+ static PangoFontDescription* PangoFontFromGfxFont(const gfx::Font& gfx_font);
#endif
private: