Beispiel #1
0
 public IRectangleF MeasureText(IDrawStyle style = null)
 {
     if (!Changed)
         return Bounds;
     ChangeDrawStyle(style);
     var info = font.MeasureGlyphs(originalGlyphs, DrawX, DrawY, DrawStyle);
     area = info.Bounds;
     originalGlyphs = info.Glyphs;
     RestoreDrawStyle();
     return area;
 }