예제 #1
0
 public void Push(BitmapChar ch)
 {
     _chars.Push(ch);
     this.Width += this.GetWidth(ch);
 }
예제 #2
0
 public float GetWidth(BitmapChar ch)
 {
     return((_chars.Count > 0 ? ch.GetKerning(_chars.Peek().Id) : 0f) + ch.Advance + _kerning);
 }