mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 08:21:27 +00:00
7050826: Hebrew characters are not rendered on OEL 5.6
Reviewed-by: bae, jgodinez
This commit is contained in:
parent
aeec78ab37
commit
b3aa4cdcba
@ -1191,8 +1191,16 @@ Java_sun_font_FontConfigManager_getFontConfig
|
||||
|
||||
fontformat = NULL;
|
||||
(*FcPatternGetString)(fontPattern, FC_FONTFORMAT, 0, &fontformat);
|
||||
if (fontformat != NULL && strcmp((char*)fontformat, "TrueType")
|
||||
!= 0) {
|
||||
/* We only want TrueType fonts but some Linuxes still depend
|
||||
* on Type 1 fonts for some Locale support, so we'll allow
|
||||
* them there.
|
||||
*/
|
||||
if (fontformat != NULL
|
||||
&& (strcmp((char*)fontformat, "TrueType") != 0)
|
||||
#ifdef __linux__
|
||||
&& (strcmp((char*)fontformat, "Type 1") != 0)
|
||||
#endif
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
result = (*FcPatternGetCharSet)(fontPattern,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user