-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 13
-
b10
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8242843 | 13.0.4 | Dmitry Batrak | P4 | Resolved | Fixed | b01 |
JDK-8242772 | 11.0.8-oracle | Dmitry Batrak | P4 | Resolved | Fixed | b03 |
JDK-8244323 | 11.0.8 | Dmitry Batrak | P4 | Resolved | Fixed | b02 |
JDK-8246216 | openjdk8u262 | Dmitry Batrak | P4 | Resolved | Fixed | b05 |
JDK-8245045 | 8u271 | Dmitry Batrak | P4 | Resolved | Fixed | b01 |
JDK-8251656 | emb-8u271 | Dmitry Batrak | P4 | Resolved | Fixed | team |
Steps to reproduce:
1) Install all font variants from the provided archive one-by-one in alphabetical order (black, bold, light, medium, regular, thin).
2) Run the program with source code given below.
Expected result: "Hello, world!" text is rendered.
Actual result: unrelated glyphs are rendered (see attached image).
--- Test program source code ---
import javax.swing.*;
import java.awt.*;
public class FontDrawingTest {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame();
frame.add(new MyComponent());
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(200, 100);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
});
}
private static class MyComponent extends JComponent {
@Override
protected void paintComponent(Graphics g) {
((Graphics2D) g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
g.setFont(new Font("Roboto", Font.PLAIN, 24));
g.drawString("Hello, world!", 25, 35);
}
}
}
--------------------------------
- backported by
-
JDK-8242772 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
-
JDK-8242843 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
-
JDK-8244323 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
-
JDK-8245045 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
-
JDK-8246216 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
-
JDK-8251656 Incorrect Roboto font rendering on Windows with subpixel antialiasing
- Resolved
- duplicates
-
JDK-8228713 [Windows] Incorrect mapping from font file to GDI font results in the wrong glyphs being displayed
- Closed