diff --git a/vtm/src/org/oscim/theme/renderinstruction/Text.java b/vtm/src/org/oscim/theme/renderinstruction/Text.java index c527d8d3..dfb4e62d 100644 --- a/vtm/src/org/oscim/theme/renderinstruction/Text.java +++ b/vtm/src/org/oscim/theme/renderinstruction/Text.java @@ -50,13 +50,7 @@ public final class Text extends RenderInstruction { public static Text createText(float fontSize, float strokeWidth, int fill, int outline, boolean billboard) { - Text t = new Text("", "", FontFamily.DEFAULT, FontStyle.NORMAL, - fontSize, fill, outline, strokeWidth, 0, billboard, null, Integer.MAX_VALUE); - - t.fontHeight = t.paint.getFontHeight(); - t.fontDescent = t.paint.getFontDescent(); - - return t; + return createText("", fontSize, strokeWidth, fill, outline, billboard); }