diff options
author | rbuj <[email protected]> | 2019-06-16 13:21:30 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-18 10:07:19 +0200 |
commit | 66368a189dea7ab666cb4089ee30b6ba04ba5132 (patch) | |
tree | 3d62c86143e83d6190578c20d2fe9714746b8eb5 /font-viewer/sushi-font-widget.c | |
parent | 5caf5bd5aa799c35050c728f72617ad6b03fb0d7 (diff) | |
download | mate-control-center-66368a189dea7ab666cb4089ee30b6ba04ba5132.tar.bz2 mate-control-center-66368a189dea7ab666cb4089ee30b6ba04ba5132.tar.xz |
Remove trailing whitespaces
find . -regextype posix-extended -regex '.*\.(c|h|ac)' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
Diffstat (limited to 'font-viewer/sushi-font-widget.c')
-rw-r--r-- | font-viewer/sushi-font-widget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/font-viewer/sushi-font-widget.c b/font-viewer/sushi-font-widget.c index ef778579..bad2ffee 100644 --- a/font-viewer/sushi-font-widget.c +++ b/font-viewer/sushi-font-widget.c @@ -154,7 +154,7 @@ build_charlist_for_face (FT_Face face, GString *string; gulong c; guint glyph; - gint total_chars = 0; + gint total_chars = 0; string = g_string_new (NULL); @@ -254,7 +254,7 @@ build_strings_for_face (SushiFontWidget *self) self->priv->font_name = NULL; if (self->priv->face->family_name != NULL) { - gchar *font_name = + gchar *font_name = g_strconcat (self->priv->face->family_name, " ", self->priv->face->style_name, NULL); @@ -387,7 +387,7 @@ sushi_font_widget_size_request (GtkWidget *drawing_area, if (self->priv->lowercase_text != NULL) { cairo_text_extents (cr, self->priv->lowercase_text, &extents); - pixmap_height += font_extents.ascent + font_extents.descent + + pixmap_height += font_extents.ascent + font_extents.descent + extents.y_advance + LINE_SPACING; pixmap_width = MAX (pixmap_width, extents.width + padding.left + padding.right); } |