#34242 replace X font lookups on "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" with "-*"

patch prepared by:  Roland Mainz
r=shanjian sr=brendan
This commit is contained in:
shanjian%netscape.com 2001-11-29 02:05:52 +00:00
parent 2d5c5f1b8a
commit b8248f53a0
2 changed files with 4 additions and 2 deletions

View File

@ -3611,7 +3611,7 @@ GetAllFontNames(void)
if (!gGlobalList) {
return NS_ERROR_OUT_OF_MEMORY;
}
GetFontNames("-*-*-*-*-*-*-*-*-*-*-*-*-*-*", gGlobalList);
GetFontNames("-*", gGlobalList);
}
return NS_OK;

View File

@ -3418,7 +3418,9 @@ GetAllFontNames(void)
if (!gGlobalList) {
return NS_ERROR_OUT_OF_MEMORY;
}
GetFontNames("-*-*-*-*-*-*-*-*-*-*-*-*-*-*", gGlobalList);
/* Using "-*" instead of the full-qualified "-*-*-*-*-*-*-*-*-*-*-*-*-*-*"
* because it's faster and "smarter" - see bug 34242 for details. */
GetFontNames("-*", gGlobalList);
}
return NS_OK;