diff options
Diffstat (limited to 'src/terminal-screen.c')
-rw-r--r-- | src/terminal-screen.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c index ba30e39..01bec75 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -1167,6 +1167,7 @@ terminal_screen_set_font (TerminalScreen *screen) TerminalScreenPrivate *priv = screen->priv; TerminalProfile *profile; PangoFontDescription *desc; + int size; profile = priv->profile; @@ -1176,14 +1177,11 @@ terminal_screen_set_font (TerminalScreen *screen) g_object_get (profile, TERMINAL_PROFILE_FONT, &desc, NULL); g_assert (desc); + size = pango_font_description_get_size (desc); if (pango_font_description_get_size_is_absolute (desc)) - pango_font_description_set_absolute_size (desc, - priv->font_scale * - pango_font_description_get_size (desc)); + pango_font_description_set_absolute_size (desc, priv->font_scale * size); else - pango_font_description_set_size (desc, - priv->font_scale * - pango_font_description_get_size (desc)); + pango_font_description_set_size (desc, (int)(priv->font_scale * size)); vte_terminal_set_font (VTE_TERMINAL (screen), desc); |