Skip to content

Commit 3ee9034

Browse files
committed
Fixed incorrect preferred height and alignment
1 parent 0fc985e commit 3ee9034

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/BitmapFontImporter/Editor/FntParse.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,12 @@ private CharacterInfo CreateCharInfo(int id, int x, int y, int w, int h, int xo,
286286

287287
Rect vert = new Rect();
288288
vert.x = xo;
289+
#if UNITY_5_0 || UNITY_5_1 || UNITY_5_2
290+
// unity 5.0 can not support baseline for
291+
vert.y = 0;
292+
#else
289293
vert.y = yo - lineBaseHeight;
294+
#endif
290295
vert.width = w;
291296
vert.height = h;
292297
vert.y = -vert.y;

0 commit comments

Comments
 (0)