Exemple #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="font"></param>
        public FontRenderer(Font font)
        {
            if (font == null)
                throw new ArgumentNullException("font");

            Fonts = new Font[]
            {
                font
            };
        }
Exemple #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="regular"></param>
        /// <param name="bold"></param>
        /// <param name="strikethrough"></param>
        /// <param name="underline"></param>
        /// <param name="italic"></param>
        public FontRenderer(Font regular, Font bold, Font strikethrough, Font underline, Font italic)
        {
            if (regular == null)
                throw new ArgumentNullException("regular");

            Fonts = new Font[]
            {
                regular,
                bold ?? regular,
                strikethrough ?? regular,
                underline ?? regular,
                italic ?? regular
            };
        }