Пример #1
0
        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));
        }
Пример #2
0
        public TrueTypeText GetText(string fontPathKey, int fontSize, Color color, string text)
        {
            string fontPath = GetFontPath(fontPathKey);

            return(TrueTypeTextFactory.CreateTrueTypeText(renderer, fontPath, fontSize, color, text, 0));
        }