tangxu
2024-12-16 23fadc9cb0c09b665a1bbcef7eaf16f916045dc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#region Imports
 
using System.Drawing;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Extension.Metro
{
    #region GlobalFontExtension
 
    public class GlobalFont
    {
        public static Font Regular(float size)
        {
            return new Font("Segoe UI", size);
        }
 
        public static Font Normal(string fnt, float size)
        {
            return new Font(fnt, size);
        }
 
        public static Font Light(float size)
        {
            return new Font("Segoe UI Light", size);
        }
 
        public static Font Italic(float size)
        {
            return new Font("Segoe UI", size, FontStyle.Italic);
        }
 
        public static Font SemiBold(float size)
        {
            return new Font("Segoe UI semibold", size);
        }
 
        public static Font Bold(float size)
        {
            return new Font("Segoe UI", size, FontStyle.Bold);
        }
    }
 
    #endregion
}