[OpenJDK 2D-Dev] RFR: 8170950: Text is displayed in bold when fonts are installed into symlinked folder
dmitry.batrak at jetbrains.com
Mon Jan 30 08:53:41 UTC 2017
I'd like to propose a fix for JDK-8170950.
I have only a Contributor status, so I'll require a sponsor.
The issue is a special case of JDK-8012351 (fixed previously) - when font
are located in symlinked folders. Physical components of logical fonts are
registered 'directly', but other fonts are registered with resolving of
links (see registerFontsOnPath invocation in SunFontManager.loadFonts()).
So paths comparison in FontFamily.isFromSameSource doesn't always work
currently. The proposal is to add symlink resolution to
FontFamily.isFromSameSource before path comparison. There are probably other
ways to fix the issue - by changing the way fonts are registered, but this
seems to be safer in terms of possible regressions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the 2d-dev