Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: BitmapFontImporter/Editor/BFImporter.cs
- ===================================================================
- --- BitmapFontImporter/Editor/BFImporter.cs (revision 4865)
- +++ BitmapFontImporter/Editor/BFImporter.cs (working copy)
- @@ -59,8 +59,9 @@
- SerializedObject so = new SerializedObject(font);
- so.Update();
- - so.FindProperty("m_FontSize").floatValue = parse.fontSize;
- + so.FindProperty("m_FontSize").floatValue = Mathf.Abs(parse.fontSize);
- so.FindProperty("m_LineSpacing").floatValue = parse.lineHeight;
- + so.FindProperty("m_Descent").floatValue = -parse.lineHeight;
- UpdateKernings(so, parse.kernings);
- so.ApplyModifiedProperties();
- so.SetIsDifferentCacheDirty();
Add Comment
Please, Sign In to add comment