[OpenJDK 2D-Dev] RFR: 8064833 : [macosx] Native font lookup uses family+style, not full name/postscript name

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Dec 23 19:10:54 UTC 2014


Hi, Phil.
Probably it is possible to move the new code in CFontManager.loadFonts() 
to the SunFontManager.loadFonts()?
Note that in the test the text "Big italic red text" should be ..."black 
text", and the window should be disposed at the end of the test. Why 
this test is mac specific?

On 15.12.2014 23:20, Phil Race wrote:
> https://bugs.openjdk.java.net/browse/JDK-8064833
> http://cr.openjdk.java.net/~prr/8064833/
>
> OS X font look up is using family name + style - even when using 
> deriveFont
> from a specific font. Since the family name like "Helvetica" is 
> insufficient to
> convey that you are using the "Helvetica Light" subfamily and we get the
> wronf font.
> The provided test shows that the results can be completely garbage 
> rendering.
>
> Some clean up included here is remove the unconditional define of 
> DEBUG and
> the native 'isFakeItalic' variable which was not used anywhere.
>
> -phil.


-- 
Best regards, Sergey.




More information about the 2d-dev mailing list