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

patch prepared by:  Roland Mainz
r=shanjian sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109170 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shanjian%netscape.com
2001-11-29 02:05:52 +00:00
parent 3c10b47a80
commit 9e1fb89e0a
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;