public virtual void SetResourceFont(string name, PDFFontDefinition definition)
 {
     this._familyName    = name;
     this._cachedmetrics = definition.GetFontMetrics(this.Size);
     //var style = this.GetDrawingStyle();
     //var sys = PDFFontFactory.GetSystemFont(this._familyName, this.GetDrawingStyle(), (float)this.Size.PointsValue);
     //int line = sys.FontFamily.GetLineSpacing(style);
 }
 /// <summary>
 /// Clears any cached information about this fonts system equivalent.
 /// </summary>
 /// <remarks>Inheritors should override this method if they store system information,
 /// and call this method if any properties would invalidate the cached font.</remarks>
 public virtual void ClearResourceFont()
 {
     this._familyName    = null;
     this._cachedmetrics = null;
 }