[OpenJDK 2D-Dev] RFR 8218854: FontMetrics.getMaxAdvance may be less than the maximum FontMetrics.charWidth

Martin Balao mbalao at redhat.com
Thu Feb 21 21:27:32 UTC 2019

Hi Phil,

On 2/19/19 10:34 PM, Philip Race wrote:
> One more thing about the test, I am not sure why you need to use
> sun.font.FontDesignMetrics directly ?
> Isn't it enough to create a BufferedImage and get an appropriate
> FRC and FM by setting the properties on the graphics for that ?

Yes, that's better, there's no need to use an internal API here.


 * http://cr.openjdk.java.net/~mbalao/webrevs/8218854/8218854.webrev.02/
 * http://cr.openjdk.java.net/~mbalao/webrevs/8218854/8218854.webrev.02.zip

Are we good to go with Webrev.02?


More information about the 2d-dev mailing list