예제 #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));
        }