Beispiel #1
0
        public static Form SetFont(MetroForm form, int size)
        {
            var pfc = FontCustomizable.AsnEncodedData();

            form.Font = new Font(pfc.Families[0], size);

            return(form);
        }
Beispiel #2
0
        public static Label SetFont(Label label, int size)
        {
            var pfc = FontCustomizable.AsnEncodedData();

            label.Font = new Font(pfc.Families[0], size);

            return(label);
        }
Beispiel #3
0
        public static Label SetFont(Label label, int size, Color color)
        {
            var pfc = FontCustomizable.AsnEncodedData();

            label.Font      = new Font(pfc.Families[0], size, FontStyle.Bold);
            label.ForeColor = color;

            return(label);
        }