Font() public method

public Font ( string fontName ) : void
fontName string
return void
Exemplo n.º 1
0
        /// <summary>
        /// Draws this instance with the drawing wand.
        /// </summary>
        /// <param name="wand">The want to draw on.</param>
        void IDrawingWand.Draw(DrawingWand wand)
        {
            if (wand == null)
            {
                return;
            }

            foreach (string extension in _FontExtensions)
            {
                if (Family.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
                {
                    wand.Font(Family);
                    return;
                }
            }

            wand.FontFamily(Family, Style, Weight, Stretch);
        }