Explorar o código

initialize lineSpacing var
(in js target in was undefined that caused error in computing text height)

Ivan Tivonenko %!s(int64=11) %!d(string=hai) anos
pai
achega
57c4938fd2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      h2d/Text.hx

+ 2 - 1
h2d/Text.hx

@@ -27,6 +27,7 @@ class Text extends Drawable {
 		this.font = font;
 		textAlign = Left;
 		letterSpacing = 1;
+        lineSpacing = 0;
 		text = "";
 		textColor = 0xFFFFFF;
 	}
@@ -185,4 +186,4 @@ class Text extends Drawable {
 		return c;
 	}
 
-}
+}