mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 01:19:28 +01:00
JBR-9612 Update fontconfigmanager.c with upstream changes in fontpath.c
Applied changes from JDK-8357252
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user