summaryrefslogtreecommitdiffstats
path: root/app/gfx/canvas_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/canvas_linux.cc')
-rw-r--r--app/gfx/canvas_linux.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/gfx/canvas_linux.cc b/app/gfx/canvas_linux.cc
index 1614f44..7ed1904 100644
--- a/app/gfx/canvas_linux.cc
+++ b/app/gfx/canvas_linux.cc
@@ -130,7 +130,9 @@ static void SetupPangoLayout(PangoLayout* layout,
PANGO_WRAP_WORD_CHAR : PANGO_WRAP_WORD);
}
- pango_layout_set_font_description(layout, font.nativeFont());
+ PangoFontDescription* desc = gfx::Font::PangoFontFromGfxFont(font);
+ pango_layout_set_font_description(layout, desc);
+ pango_font_description_free(desc);
}
// static