public TrueTypeText GetTrueTypeText(string fontPath, int fontSize, Color color, string text, int wrapLength) { if (fontPath == null) { throw new ArgumentNullException("fontPath"); } if (text == null) { throw new ArgumentNullException("text"); } return(TrueTypeTextFactory.CreateTrueTypeText(renderer, fontPath, fontSize, color, text, wrapLength)); }
public TrueTypeText GetText(string fontPathKey, int fontSize, Color color, string text) { string fontPath = GetFontPath(fontPathKey); return(TrueTypeTextFactory.CreateTrueTypeText(renderer, fontPath, fontSize, color, text, 0)); }