Render styles improvements

This commit is contained in:
Emux
2016-12-10 22:50:07 +02:00
parent 02db7ca08d
commit 1de6ca8fb7
10 changed files with 49 additions and 19 deletions

View File

@@ -212,6 +212,11 @@ public class AwtPaint implements Paint {
stroke = new BasicStroke(strokeWidth, cap, join, join == BasicStroke.JOIN_MITER ? 1.0f : 0, null, 0);
}
@Override
public float getStrokeWidth() {
return strokeWidth;
}
@Override
public float getTextHeight(String text) {
Graphics2D graphics2d = bufferedImage.createGraphics();