JBR-9612 Update fontconfigmanager.c with upstream changes in fontpath.c

Applied changes from JDK-8357252
This commit is contained in:
Alexey Ushakov
2025-11-11 16:42:05 +01:00
committed by jbrbot
parent ecd99e1765
commit 1fde6c7cc0

View File

@@ -599,7 +599,7 @@ Java_sun_font_FontConfigManager_setupFontConfigFonts
return;
}
fontCount = 0;
minGlyphs = 20;
minGlyphs = 0;
if (debugMinGlyphsStr != NULL) {
int val = minGlyphs;
sscanf(debugMinGlyphsStr, "%5d", &val);
@@ -645,14 +645,6 @@ Java_sun_font_FontConfigManager_setupFontConfigFonts
return;
}
/* We don't want 20 or 30 fonts, so once we hit 10 fonts,
* then require that they really be adding value. Too many
* adversely affects load time for minimal value-add.
* This is still likely far more than we've had in the past.
*/
if (j==10) {
minGlyphs = 50;
}
if (unionCharset == NULL) {
unionCharset = charset;
} else {