Skip to content

Commit

Permalink
Removes a useless call to Math.round(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Jul 25, 2021
1 parent d21d537 commit d57d08b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ protected void _draw(final StringObject s) {
drawBitmap(s.getObject(), attributes);
} else {
Font font = attributes.getFont();
final int fontSize = autoScaleUp(Math.round(font.getSize()));
final int fontSize = autoScaleUp(font.getSize());
if (fontSize != font.getSize()) { font = font.deriveFont((float) fontSize); }
Shape shape = font.createGlyphVector(context, s.getObject()).getOutline();
final Rectangle2D bounds = shape.getBounds2D();
Expand Down

0 comments on commit d57d08b

Please sign in to comment.