-
Bug
-
Resolution: Fixed
-
P4
-
11, 16, 17
-
b18
-
generic
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8265054 | 11.0.12-oracle | Dukebot | P4 | Resolved | Fixed | b01 |
Manual test TestGASPHint.java need to be updated as it fails in JDK 11 and above because of unavailability of Lucida Sans font. Details are given below. The test need to be updated to get the available font by iterating the system fonts.
Details:
Testsuite name: Regression manual
Test name(s): java/awt/font/TextLayout/TestGASPHint.html
Product(s) tested: JDK 11.0.11_b02(64bit)
OS/architecture: Windows x64/Jtreg4.2 b12
Instruction:
When I run this test, a short piece Devanagari text should appear without any artifacts.
In particular there should be no "empty rectangles" representing the missing
glyph.
Actual behavior:
1) The Devanagari text is not shown and a string of empty rectangles shown refer to Actual.jpg and Expected.jpg.
2) There is no such issue with JDK 7 or 8.
Analysis:
Java was not recognizing Devanagari script and not able to display Devanagari Unicode characters even though the windows machine has an already installed system font(Nirmala UI) which supports Devanagari. But when I added this system font which supports Devanagari(Nirmala UI) in $JDKHOME/conf/fonts/ fontconfig.properties, it displays those Unicode characters correctly. So when we use a logical font like 'DIALOG', Java is not recognizing any supported system fonts available if that font is not mentioned in the default fontconfig.properties supplied along with JDK. But when we create a user defined fontconfig.properties and add our system font there, it just works fine.
Details:
Testsuite name: Regression manual
Test name(s): java/awt/font/TextLayout/TestGASPHint.html
Product(s) tested: JDK 11.0.11_b02(64bit)
OS/architecture: Windows x64/Jtreg4.2 b12
Instruction:
When I run this test, a short piece Devanagari text should appear without any artifacts.
In particular there should be no "empty rectangles" representing the missing
glyph.
Actual behavior:
1) The Devanagari text is not shown and a string of empty rectangles shown refer to Actual.jpg and Expected.jpg.
2) There is no such issue with JDK 7 or 8.
Analysis:
Java was not recognizing Devanagari script and not able to display Devanagari Unicode characters even though the windows machine has an already installed system font(Nirmala UI) which supports Devanagari. But when I added this system font which supports Devanagari(Nirmala UI) in $JDKHOME/conf/fonts/ fontconfig.properties, it displays those Unicode characters correctly. So when we use a logical font like 'DIALOG', Java is not recognizing any supported system fonts available if that font is not mentioned in the default fontconfig.properties supplied along with JDK. But when we create a user defined fontconfig.properties and add our system font there, it just works fine.
- backported by
-
JDK-8265054 [Test_Bug]: Manual test TestGASPHint.java need to be updated.
-
- Resolved
-