Hack to increase XftMaxFreeTypeFiles to a sane value from the default value of

"5".  Bug 330064, patch by vlad, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2007-03-03 04:55:35 +00:00
parent c5746047f9
commit 994513394b

View File

@ -193,6 +193,14 @@ static void InitPangoLib()
PR_FindFunctionSymbol(lib, "pango_font_description_set_absolute_size");
// leak lib deliberately
lib = nsnull;
int *xft_max_freetype_files_ptr = nsnull;
xft_max_freetype_files_ptr = (int*) PR_FindSymbolAndLibrary("XftMaxFreeTypeFiles", &lib);
if (xft_max_freetype_files_ptr)
*xft_max_freetype_files_ptr = 50;
if (lib)
PR_UnloadLibrary(lib);
}
static void