refactor: --dup code

This commit is contained in:
Hannes Janetzek 2013-07-26 03:13:59 +02:00
parent 23a26eb18c
commit 43e9c6ebd9

View File

@ -50,13 +50,7 @@ public final class Text extends RenderInstruction {
public static Text createText(float fontSize, float strokeWidth, int fill, int outline, public static Text createText(float fontSize, float strokeWidth, int fill, int outline,
boolean billboard) { boolean billboard) {
Text t = new Text("", "", FontFamily.DEFAULT, FontStyle.NORMAL, return createText("", fontSize, strokeWidth, fill, outline, billboard);
fontSize, fill, outline, strokeWidth, 0, billboard, null, Integer.MAX_VALUE);
t.fontHeight = t.paint.getFontHeight();
t.fontDescent = t.paint.getFontDescent();
return t;
} }