FontFamily() public method

public FontFamily ( string family, FontStyleType style, FontWeight weight, FontStretch stretch ) : void
family string
style FontStyleType
weight FontWeight
stretch FontStretch
return void
Esempio 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);
        }