GNOME Bugzilla – Bug 125836
libgnomeprint choose first available system font
Last modified: 2004-12-22 21:47:04 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"
Created attachment 21058 [details] [review]
Fix default font fallback
*** Bug 102256 has been marked as a duplicate of this bug. ***
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!)
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