Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1514130 - gnome-font-viewer displays huge thumbnails
Summary: gnome-font-viewer displays huge thumbnails
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-font-viewer
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexander Larsson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-16 17:11 UTC by Ray Strode [halfline]
Modified: 2018-11-02 02:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Ray Strode [halfline] 2017-11-16 17:11:52 UTC
adwaita-icon-theme only ships 512px icons for the font-x-generic.png icon. that means that gnome-font-viewer shows REALLY oversized thumbnails for fonts it can't generate a thumbnail of.

It should force the size to 128px:

diff -up gnome-font-viewer-3.22.0/src/font-model.c.force-size gnome-font-viewer-3.22.0/src/font-model.c
--- gnome-font-viewer-3.22.0/src/font-model.c.force-size	2017-11-16 12:09:40.840482021 -0500
+++ gnome-font-viewer-3.22.0/src/font-model.c	2017-11-16 12:09:46.300424236 -0500
@@ -365,7 +365,7 @@ ensure_fallback_icon (FontViewModel *sel
     icon_theme = gtk_icon_theme_get_default ();
     icon = g_content_type_get_icon ("application/x-font-ttf");
     icon_info = gtk_icon_theme_lookup_by_gicon_for_scale (icon_theme, icon,
-                                                          128, self->priv->scale_factor, 0);
+                                                          128, self->priv->scale_factor, GTK_ICON_LOOKUP_FORCE_SIZE);
     g_object_unref (icon);
 
     if (!icon_info)


Note You need to log in before you can comment on or make changes to this bug.