xorg-libx11/modules/om/generic
Jon TURNEY 3d69b0a83e 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>
2013-12-13 22:27:08 -08:00
..
Makefile.am Remove support for building without XCB 2010-06-03 22:19:14 -07:00
omDefault.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omGeneric.c Don't try so hard to find a matching font with the given encoding 2013-12-13 22:27:08 -08:00
omImText.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omText.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omTextEsc.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omTextExt.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omTextPer.c Purge CVS/RCS id tags 2010-01-14 17:38:26 -08:00
omXChar.c unifdef MUSTCOPY 2013-03-03 18:20:10 -08:00