diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-07 18:46:08 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:29 +0200 |
commit | 4fad46e9cbc7f6a29a113bf064cf210743544caf (patch) | |
tree | 12879fb42353d508afe33cb7de0032aa3ddb4828 /nx-X11/include/GL/glu.h | |
parent | f45ac4ae31017c15ce8634be387be53b5ab8ebf3 (diff) | |
download | nx-libs-4fad46e9cbc7f6a29a113bf064cf210743544caf.tar.gz nx-libs-4fad46e9cbc7f6a29a113bf064cf210743544caf.tar.bz2 nx-libs-4fad46e9cbc7f6a29a113bf064cf210743544caf.zip |
Don't try so hard to find a matching font with the given encoding
See http://sourceware.org/bugzilla/show_bug.cgi?id=10948
Currently, if the locale is UTF-8, no CJK fonts are installed, and someone
does XCreateFontSet() with a font name of "*", we end up asking the server
to list the (non-existent) fonts 11 times for each CJK encoding, which can
take a while.
A * wildcard can match multiple components in a XLFD name in XListFonts(),
so there's no need to try adding more than one to get a match.
We do try once with a leading '*-' in case the fontname isn't a full
well-formed XLFD name, maybe even that isn't needed?
(See also http://invisible-island.net/xterm/xterm.faq.html#slow_menus)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/include/GL/glu.h')
0 files changed, 0 insertions, 0 deletions