using System; using System.Collections.Generic; using UnityEngine; [Serializable] public class FontData { public Vector2 TextureSize = new Vector2(256f, 256f); public List bounds = new List(); public List offsets = new List(); public List Channels = new List(); public Dictionary charMap; public float LineHeight; public Dictionary> kernings; public float GetKerning(int last, int cur) { Dictionary dictionary; float result; if (this.kernings.TryGetValue(last, out dictionary) && dictionary.TryGetValue(cur, out result)) { return result; } return 0f; } }