[OpenJDK 2D-Dev] RFR: 8064833 : [macosx] Native font lookup uses family+style, not full name/postscript name
andrew.brygin at oracle.com
Wed Dec 31 08:41:36 UTC 2014
could you please clarify why do we need to register italic variant twice:
280 registerGenericFont(plain.createItalicVariant(), true);
281 CFont f = plain.createItalicVariant();
282 registerGenericFont(f, true);
the same thing is done for bold font on lines 285 - 287.
On 12/15/2014 11:20 PM, Phil Race wrote:
> OS X font look up is using family name + style - even when using
> 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
> Some clean up included here is remove the unconditional define of
> DEBUG and
> the native 'isFakeItalic' variable which was not used anywhere.
More information about the 2d-dev