Guest User

Untitled

a guest
Jan 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Index: BitmapFontImporter/Editor/BFImporter.cs
  2. ===================================================================
  3. --- BitmapFontImporter/Editor/BFImporter.cs (revision 4865)
  4. +++ BitmapFontImporter/Editor/BFImporter.cs (working copy)
  5. @@ -59,8 +59,9 @@
  6.  
  7. SerializedObject so = new SerializedObject(font);
  8. so.Update();
  9. - so.FindProperty("m_FontSize").floatValue = parse.fontSize;
  10. + so.FindProperty("m_FontSize").floatValue = Mathf.Abs(parse.fontSize);
  11. so.FindProperty("m_LineSpacing").floatValue = parse.lineHeight;
  12. + so.FindProperty("m_Descent").floatValue = -parse.lineHeight;
  13. UpdateKernings(so, parse.kernings);
  14. so.ApplyModifiedProperties();
  15. so.SetIsDifferentCacheDirty();
Add Comment
Please, Sign In to add comment