refactor: --dup code
This commit is contained in:
parent
23a26eb18c
commit
43e9c6ebd9
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user