[OpenJDK 2D-Dev] RFR: 8158408: Font2DTest demo needs to use FontPanel resolution matching the screen

Phil Race philip.race at oracle.com
Wed Jun 1 18:44:31 UTC 2016


On 06/01/2016 11:05 AM, Semyon Sadetsky wrote:
> you call  super.paintComponent(g); twice in lines 956 and 964. Is it 
> expected behavior?

Yes, if "CannotDrawException" is caught we want to repaint using super 
else, we will
may have a partially panel.

-phil.

>
> --Semyon
>
>
> On 6/1/2016 7:58 PM, Philip Race wrote:
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8158408
>> Webrev: http://cr.openjdk.java.net/~prr/8158408/
>>
>> At 125% scaling on JDK 9 Font2DTest looks horrid since its
>> BufferedImage is scaled to the screen.
>> Fix is to not use a BufferedImage, just use the Swing back buffer.
>>
>> -phil.
>




More information about the 2d-dev mailing list