[OpenJDK 2D-Dev] [9] Review request for 8073400: Some Monospaced logical fonts have a different width

dmitry markov dmitry.markov at oracle.com
Thu Jan 14 10:32:51 UTC 2016


Hello,

Could you review the fix for jdk9, please?

     bug: https://bugs.openjdk.java.net/browse/JDK-8073400
     webrev: http://cr.openjdk.java.net/~dmarkov/8073400/jdk9/webrev.00/

Problem description:
On Windows some characters (in particular, left and right double 
quotation marks) have width differing from other characters' widths, 
when Monospaced logical font is used.
The default monospaced font for windows platform is Courier New. It 
contains the desired characters, (i.e. '\u201c' and '\u201d'). However 
the characters are in 'exclusion ranges' for this font due to settings 
in windows.fontconfig.properties. So when we try to obtain glyphs for 
these characters and calculate their bounds, we fallback to another font 
(Lucida) and use its glyphs.

Fix:
Remove the following set of characters u2018 - u201F from the exclusion 
ranges.

Thanks,
Dmitry



More information about the 2d-dev mailing list