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