Browse Source

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

Ivan Tivonenko 11 years ago
parent
commit
57c4938fd2
1 changed files with 2 additions and 1 deletions
  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;
 	}
 
-}
+}