public BitmapChar this [int id] { get { BitmapChar ch = null; _chars.TryGetValue(id, out ch); return(ch); } }
public void Push(BitmapChar ch) { _chars.Push(ch); this.Width += this.GetAddedWidth(ch); }
public float GetAddedWidth(BitmapChar ch) { return((_chars.Count > 0 ? this.Font.GetKerning(_chars.Peek().Id, ch.Id) : 0f) + ch.XAdvance + _kerning); }
public void Push (BitmapChar ch) { _chars.Push (ch); this.Width += this.GetAddedWidth (ch); }
public float GetAddedWidth (BitmapChar ch) { return (_chars.Count > 0 ? this.Font.GetKerning (_chars.Peek ().Id, ch.Id) : 0f) + ch.XAdvance + _kerning; }