-
Bug
-
Resolution: Fixed
-
P2
-
9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8175776 | 10 | Prasanta Sadhukhan | P2 | Resolved | Fixed | b02 |
JDK-8188623 | 8u172 | Sreeprakash Sreedharan | P2 | Resolved | Fixed | b01 |
JDK-8190625 | 8u171 | Sreeprakash Sreedharan | P2 | Resolved | Fixed | b01 |
JDK-8169863 | 8u162 | Sreeprakash Sreedharan | P3 | Resolved | Fixed | b01 |
JDK-8198119 | emb-8u171 | Unassigned | P2 | Resolved | Fixed | b01 |
A rectangle is displayed instead.
The behavior affects Java SE 9 only.
Java SE 8 is fine: Java 1.8.0_66 was tried.
The behaviour is strictly reproducible.
Here is a reproducer:
% more FontDrawingTest.java
import javax.swing.*;
import java.awt.*;
public class FontDrawingTest {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame("Test");
frame.add(new MyComponent());
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(200, 200);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
});
}
private static class MyComponent extends JComponent {
private final Font font = new Font("Menlo", Font.ITALIC, 100);
private final String text = "\u0627"; // Arabic letter alef
@Override
protected void paintComponent(Graphics g) {
if (font.canDisplayUpTo(text) == -1) {
g.setColor(Color.black);
g.setFont(font);
g.drawString(text, 70, 110);
}
}
}
}
- backported by
-
JDK-8175776 [macosx] Arabic character cannot be rendered on MacOS X
- Resolved
-
JDK-8188623 [macosx] Arabic character cannot be rendered on MacOS X
- Resolved
-
JDK-8190625 [macosx] Arabic character cannot be rendered on MacOS X
- Resolved
-
JDK-8198119 [macosx] Arabic character cannot be rendered on MacOS X
- Resolved
-
JDK-8169863 [macosx] Arabic character cannot be rendered on MacOS X
- Resolved
- blocks
-
JDK-8134078 [macosx] Font ligatures are not rendered for natively loaded font
- Closed
- relates to
-
JDK-7162125 [macosx] A font has different behaviour for ligatures depending on its creation mode
- Resolved
-
JDK-8189858 [macosx] Arabic character cannot be rendered on MacOS X
- Closed