After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 125836 - libgnomeprint choose first available system font
libgnomeprint choose first available system font
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: general
CVS
Other Linux
: Normal normal
: ---
Assigned To: Chema Celorio
Chema Celorio
: 102256 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-10-30 14:48 UTC by Frederic Crozat
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix default font fallback (657 bytes, patch)
2003-10-30 14:52 UTC, Frederic Crozat
none Details | Review

Description Frederic Crozat 2003-10-30 14:48:17 UTC
When libgnomeprint isn't able to find a font which is available through a
fontconfig alias (for instance, an HTML mail with "Arial" in Evolution
1.4.x), it still tries to use the first font available on the system.

This patch forces it to use "Sans Regular"
Comment 1 Frederic Crozat 2003-10-30 14:52:22 UTC
Created attachment 21058 [details] [review]
Fix default font fallback
Comment 2 Andreas J. Guelzow 2003-10-30 16:23:34 UTC
*** Bug 102256 has been marked as a duplicate of this bug. ***
Comment 3 Andreas J. Guelzow 2003-10-30 16:24:07 UTC
Is there any guarantee that Sans Regular is around? (I once changed
gnumeric to fall back on that font just to be told that there is no
guarantee for that font either!)
Comment 4 Andreas J. Guelzow 2003-11-19 22:00:19 UTC
It is definitely a good idea to try to fall back on a well known font
rather than just take the first one in the list. But in case we can't
find Sans Regular (or Sans) we should still pick a random font rather
than failing completely.

fixed in HEAD and gnome-2-4