-
Bug
-
Resolution: Incomplete
-
P3
-
11, 12
-
x86_64
-
windows_7
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows [Version 6.1.7601]
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Font rendering for the default font under Windows LAF looks strange, e.g. in JLabel. At least lowercase i and l look incorrectly aligned horizontally - it looks almost like an extra space character is rendered.
REGRESSION : Last worked in version 10.0.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached reproducer (FontBug) with sample labels.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Correctly rendered labels
ACTUAL -
Extra space in string rendering
---------- BEGIN SOURCE ----------
import java.awt.EventQueue;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
public class FontBug extends JFrame
{
public FontBug()
{
super( System.getProperty( "java.runtime.version" ) );
setDefaultCloseOperation( EXIT_ON_CLOSE );
setLayout( new FlowLayout() );
add( new JLabel( "Admin" ) );
add( new JLabel( "Client" ) );
add( new JLabel( "Identity" ) );
add( new JLabel( "Implemented" ) );
add( new JLabel( "without" ) );
pack();
setVisible( true );
}
public static void main( String[] args )
{
EventQueue.invokeLater( new Runnable()
{
@Override
public void run()
{
try
{
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
}
catch ( Exception e )
{
e.printStackTrace();
}
new FontBug();
}
} );
}
}
---------- END SOURCE ----------
FREQUENCY : always
Microsoft Windows [Version 6.1.7601]
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Font rendering for the default font under Windows LAF looks strange, e.g. in JLabel. At least lowercase i and l look incorrectly aligned horizontally - it looks almost like an extra space character is rendered.
REGRESSION : Last worked in version 10.0.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached reproducer (FontBug) with sample labels.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Correctly rendered labels
ACTUAL -
Extra space in string rendering
---------- BEGIN SOURCE ----------
import java.awt.EventQueue;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
public class FontBug extends JFrame
{
public FontBug()
{
super( System.getProperty( "java.runtime.version" ) );
setDefaultCloseOperation( EXIT_ON_CLOSE );
setLayout( new FlowLayout() );
add( new JLabel( "Admin" ) );
add( new JLabel( "Client" ) );
add( new JLabel( "Identity" ) );
add( new JLabel( "Implemented" ) );
add( new JLabel( "without" ) );
pack();
setVisible( true );
}
public static void main( String[] args )
{
EventQueue.invokeLater( new Runnable()
{
@Override
public void run()
{
try
{
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
}
catch ( Exception e )
{
e.printStackTrace();
}
new FontBug();
}
} );
}
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8217731 Font rendering and glyph spacing changed from jdk-8 to jdk-11
-
- Resolved
-