Browse Source

Copy offsets in Font.clone()

Grégoire André 3 years ago
parent
commit
4a3b12b66c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      h2d/Font.hx

+ 2 - 0
h2d/Font.hx

@@ -258,6 +258,8 @@ class Font {
 		f.charset = charset;
 		f.defaultChar = defaultChar.clone();
 		f.type = type;
+		f.offsetX = offsetX;
+		f.offsetY = offsetY;
 		for( g in glyphs.keys() ) {
 			var c = glyphs.get(g);
 			var c2 = c.clone();