Exemplo n.º 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));
        }
Exemplo n.º 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));
        }