<Swing Dev> [12] RFR JDK-8201925:JEditorPane unordered list bullets look pixelated

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Mon Aug 27 07:45:44 UTC 2018


Hi Sergey,

The fix is only for html elements/shapes and not for all. Could you 
please point me to a testcase which you doubt will not work?

Regards
Prasanta
On 8/25/2018 4:27 AM, Sergey Bylokhov wrote:
> Hi, Prasanta.
> The fix will change the rendering of all elements in the JEditorPane. 
> And it can be possible that we will introduce the issue similar to the 
> bug when rendering uses one font metrics(anti-aliasing on) and layout 
> uses another metrics(anti-aliasing off). This is similar to the 
> mismatch of the scaling factor.
>
> On 22/08/2018 00:03, Prasanta Sadhukhan wrote:
>> Hi All,
>>
>> Please review a fix for an issue where the HTML list bullets for HTMl 
>> text in JEditorPane looks pixelated and not smooth.
>> The issue is because the shape is not anti-aliased thereby not being 
>> rendered smooth.
>>
>> Proposed fix is to draw the shape(in this case round bullets) in 
>> antialias rendering for content-type text/html.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8201925
>> webrev: http://cr.openjdk.java.net/~psadhukhan/8201925/webrev.0/
>>
>> Regards
>> Prasanta
>
>



More information about the swing-dev mailing list