<Swing Dev> 8166034: [macosx] The bold style is not be set to text with the Motif LAF
Phil Race
philip.race at oracle.com
Thu Oct 6 17:03:18 UTC 2016
FYI this issue is now being handled over on 2d-dev :
http://mail.openjdk.java.net/pipermail/2d-dev/2016-October/007759.html
BTW The Motif L&F text widgets are what XAWT uses for its text widgets,
so any change to them may have effects you weren't expecting.
-phil.
On 10/05/2016 09:03 AM, Philip Race wrote:
> I think this is the wrong fix. It does not address the actual issue
> and will change behaviour on all platforms.
>
> The actual issue is that on MacOSX, non-antialiased fonts are
> not being algorithmically bolded or obliqued.
>
> You can see this just by running Font2DTest and selecting Serif + Bold
> If you toggle between the DEFAULT and ON settings for Antialiasing
> you will see what I mean.
>
> So in other words we have (apparently) a combination of
> the font used for Serif on OS X does not come in a BOLD face
> together with the CoreText behaviour of not bolding non-AA fonts.
>
> This isn't a TCK issue and isn't anything to do with the Motif L&F.
> Which BTW is using non-AA fonts because that is how Motif looks.
>
> So this should be recategorised as 2D and the description changed
> to match the problem and the TCK labels removed .. no spec. can
> guarantee that fonts are available or impose that you have to be
> able to synthesise fonts. There are ample precedents for this in
> other cases where (eg) Serif and Monospaced can even be the same
> font .. and monospaced isn't actually monospaced for all code points
> (in some scripts its nonsense anyway)
>
> -phil.
>
>
> On 10/5/16, 3:04 AM, Avik Niyogi wrote:
>> Hi All,
>>
>> Kindly review the proposed fix for JDK9.
>>
>> *Bug: https://bugs.openjdk.java.net/browse/JDK-8166034*
>> *
>> *
>> *Webrev: http://cr.openjdk.java.net/~aniyogi/8166034/webrev.00/
>> <http://cr.openjdk.java.net/%7Eaniyogi/8166034/webrev.00/>*
>> *
>> *
>> *Issue: *The Bold Font style was not getting applied to JTextPane
>>
>> *Cause: *The Serif font were not getting the Bold Font Style
>>
>> *Fix: *Compatible font family which is used by Motif Look And Feel
>> was used.
>>
>> With Regards,
>> Avik Niyogi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20161006/0459fe15/attachment.html>
More information about the swing-dev
mailing list