2
0
Эх сурвалжийг харах

Initialize glyphs if they weren't on draw call. (#443)

Pavel Alexandrov 7 жил өмнө
parent
commit
111cbe4088
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      h2d/Text.hx

+ 2 - 0
h2d/Text.hx

@@ -100,6 +100,8 @@ class Text extends Drawable {
 			emitTile(ctx, h2d.Tile.fromColor(0xFF00FF, 16, 16));
 			return;
 		}
+		if ( !calcDone ) initGlyphs(text, false);
+
 		if( dropShadow != null ) {
 			var oldX = absX, oldY = absY;
 			absX += dropShadow.dx * matA + dropShadow.dy * matC;