* UIStyle: 更改全局字体引用方法
This commit is contained in:
parent
9d1b7fe77d
commit
6e25a650af
Binary file not shown.
Binary file not shown.
3
SunnyUI.Demo/Charts/FLineChart.Designer.cs
generated
3
SunnyUI.Demo/Charts/FLineChart.Designer.cs
generated
@ -108,16 +108,13 @@
|
|||||||
this.LineChart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(54)))), ((int)(((byte)(54)))));
|
this.LineChart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(54)))), ((int)(((byte)(54)))));
|
||||||
this.LineChart.IsScaled = false;
|
this.LineChart.IsScaled = false;
|
||||||
this.LineChart.LegendFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.LineChart.LegendFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.LineChart.LegendFontSize = 9F;
|
|
||||||
this.LineChart.Location = new System.Drawing.Point(30, 55);
|
this.LineChart.Location = new System.Drawing.Point(30, 55);
|
||||||
this.LineChart.MinimumSize = new System.Drawing.Size(1, 1);
|
this.LineChart.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
this.LineChart.Name = "LineChart";
|
this.LineChart.Name = "LineChart";
|
||||||
this.LineChart.Size = new System.Drawing.Size(670, 430);
|
this.LineChart.Size = new System.Drawing.Size(670, 430);
|
||||||
this.LineChart.SubFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.LineChart.SubFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.LineChart.SubTextFontSize = 9F;
|
|
||||||
this.LineChart.TabIndex = 35;
|
this.LineChart.TabIndex = 35;
|
||||||
this.LineChart.Text = "uiLineChart1";
|
this.LineChart.Text = "uiLineChart1";
|
||||||
this.LineChart.TipsFontSize = 9F;
|
|
||||||
this.LineChart.PointValue += new Sunny.UI.UILineChart.OnPointValue(this.LineChart_PointValue);
|
this.LineChart.PointValue += new Sunny.UI.UILineChart.OnPointValue(this.LineChart_PointValue);
|
||||||
//
|
//
|
||||||
// uiSymbolButton2
|
// uiSymbolButton2
|
||||||
|
@ -39,8 +39,8 @@ namespace Sunny.UI
|
|||||||
Width = 400;
|
Width = 400;
|
||||||
Height = 300;
|
Height = 300;
|
||||||
|
|
||||||
SubFont = UIFontColor.CreateSubFont();
|
SubFont = UIFontColor.SubFont();
|
||||||
LegendFont = UIFontColor.CreateSubFont();
|
LegendFont = UIFontColor.SubFont();
|
||||||
|
|
||||||
tip.Parent = this;
|
tip.Parent = this;
|
||||||
tip.Height = 32;
|
tip.Height = 32;
|
||||||
@ -49,7 +49,7 @@ namespace Sunny.UI
|
|||||||
tip.Top = 1;
|
tip.Top = 1;
|
||||||
tip.StyleCustomMode = true;
|
tip.StyleCustomMode = true;
|
||||||
tip.Style = UIStyle.Custom;
|
tip.Style = UIStyle.Custom;
|
||||||
tip.Font = UIFontColor.CreateSubFont();
|
tip.Font = UIFontColor.SubFont();
|
||||||
tip.RadiusSides = UICornerRadiusSides.None;
|
tip.RadiusSides = UICornerRadiusSides.None;
|
||||||
tip.Visible = false;
|
tip.Visible = false;
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ namespace Sunny.UI
|
|||||||
private void Tip_VisibleChanged(object sender, EventArgs e)
|
private void Tip_VisibleChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
tip.IsScaled = true;
|
tip.IsScaled = true;
|
||||||
float size = SubFont != null ? SubFont.Size : SubTextFontSize;
|
float size = SubFont != null ? SubFont.Size : UIFontColor.SubFontSize;
|
||||||
tip.Font = this.DPIScaleFont(Font, size);
|
tip.Font = this.DPIScaleFont(Font, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,25 +190,13 @@ namespace Sunny.UI
|
|||||||
DrawOption(e.Graphics);
|
DrawOption(e.Graphics);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Category("SunnyUI")]
|
|
||||||
[DefaultValue(9), Browsable(false)]
|
|
||||||
public float LegendFontSize { get; set; } = 9;
|
|
||||||
|
|
||||||
[Category("SunnyUI")]
|
|
||||||
[DefaultValue(9), Browsable(false)]
|
|
||||||
public float SubTextFontSize { get; set; } = 9;
|
|
||||||
|
|
||||||
[Category("SunnyUI")]
|
|
||||||
[DefaultValue(9), Browsable(false)]
|
|
||||||
public float TipsFontSize { get; set; } = 9;
|
|
||||||
|
|
||||||
Font tmpFont;
|
Font tmpFont;
|
||||||
|
|
||||||
protected Font TempFont
|
protected Font TempFont
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
float size = SubFont != null ? SubFont.Size : SubTextFontSize;
|
float size = SubFont != null ? SubFont.Size : UIFontColor.SubFontSize;
|
||||||
|
|
||||||
if (tmpFont == null || !tmpFont.Size.EqualsFloat(size / this.DPIScale()))
|
if (tmpFont == null || !tmpFont.Size.EqualsFloat(size / this.DPIScale()))
|
||||||
{
|
{
|
||||||
@ -226,7 +214,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
float size = LegendFont != null ? LegendFont.Size : LegendFontSize;
|
float size = LegendFont != null ? LegendFont.Size : UIFontColor.SubFontSize;
|
||||||
|
|
||||||
if (tmpLegendFont == null || !tmpLegendFont.Size.EqualsFloat(size / this.DPIScale()))
|
if (tmpLegendFont == null || !tmpLegendFont.Size.EqualsFloat(size / this.DPIScale()))
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ namespace Sunny.UI
|
|||||||
public static class UIMessageTip
|
public static class UIMessageTip
|
||||||
{
|
{
|
||||||
//默认字体。当样式中的Font==null时用该字体替换
|
//默认字体。当样式中的Font==null时用该字体替换
|
||||||
static readonly Font DefaultFont = UIFontColor.Font;
|
static readonly Font DefaultFont = UIFontColor.Font();
|
||||||
//文本格式。用于测量和绘制
|
//文本格式。用于测量和绘制
|
||||||
static readonly StringFormat DefStringFormat = StringFormat.GenericTypographic;
|
static readonly StringFormat DefStringFormat = StringFormat.GenericTypographic;
|
||||||
|
|
||||||
@ -213,8 +213,9 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
IsBackground = true, Name = "T_Showing"
|
IsBackground = true,
|
||||||
|
Name = "T_Showing"
|
||||||
}.Start();
|
}.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -625,7 +626,7 @@ namespace Sunny.UI
|
|||||||
Width = 2
|
Width = 2
|
||||||
};
|
};
|
||||||
IconSpacing = 5;
|
IconSpacing = 5;
|
||||||
TextFont = UIFontColor.Font;
|
TextFont = UIFontColor.Font();
|
||||||
var fontName = TextFont.Name;
|
var fontName = TextFont.Name;
|
||||||
if (fontName == "宋体") { TextOffset = new Point(1, 1); }
|
if (fontName == "宋体") { TextOffset = new Point(1, 1); }
|
||||||
TextColor = Color.Black;
|
TextColor = Color.Black;
|
||||||
|
@ -50,7 +50,7 @@ namespace Sunny.UI
|
|||||||
SetStyleFlags();
|
SetStyleFlags();
|
||||||
Padding = new Padding(0, 0, 30, 2);
|
Padding = new Padding(0, 0, 30, 2);
|
||||||
|
|
||||||
edit.Font = UIFontColor.Font;
|
edit.Font = UIFontColor.Font();
|
||||||
edit.Left = 3;
|
edit.Left = 3;
|
||||||
edit.Top = 3;
|
edit.Top = 3;
|
||||||
edit.Text = String.Empty;
|
edit.Text = String.Empty;
|
||||||
|
@ -135,10 +135,10 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Font tipsFont = new Font("Microsoft Sans Serif", 9);
|
private Font tipsFont = UIFontColor.SubFont();
|
||||||
|
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "Microsoft Sans Serif, 9pt")]
|
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get { return tipsFont; }
|
get { return tipsFont; }
|
||||||
|
@ -32,7 +32,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
|
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
base.ForeColor = UIFontColor.Primary;
|
base.ForeColor = UIFontColor.Primary;
|
||||||
base.BackColor = Color.White;
|
base.BackColor = Color.White;
|
||||||
DrawMode = DrawMode.OwnerDrawFixed;
|
DrawMode = DrawMode.OwnerDrawFixed;
|
||||||
|
@ -32,7 +32,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public UIContextMenuStrip()
|
public UIContextMenuStrip()
|
||||||
{
|
{
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
RenderMode = ToolStripRenderMode.Professional;
|
RenderMode = ToolStripRenderMode.Professional;
|
||||||
Renderer = new ToolStripProfessionalRenderer(ColorTable);
|
Renderer = new ToolStripProfessionalRenderer(ColorTable);
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
|
@ -41,7 +41,7 @@ namespace Sunny.UI
|
|||||||
public UIControl()
|
public UIControl()
|
||||||
{
|
{
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
Size = new Size(100, 35);
|
Size = new Size(100, 35);
|
||||||
base.MinimumSize = new Size(1, 1);
|
base.MinimumSize = new Size(1, 1);
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
BackgroundColor = UIColor.White;
|
BackgroundColor = UIColor.White;
|
||||||
GridColor = UIColor.Blue;
|
GridColor = UIColor.Blue;
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
base.DoubleBuffered = true;
|
base.DoubleBuffered = true;
|
||||||
|
|
||||||
VBar.Parent = this;
|
VBar.Parent = this;
|
||||||
|
@ -40,7 +40,7 @@ namespace Sunny.UI
|
|||||||
RadiusSides = UICornerRadiusSides.None;
|
RadiusSides = UICornerRadiusSides.None;
|
||||||
RectSides = ToolStripStatusLabelBorderSides.None;
|
RectSides = ToolStripStatusLabelBorderSides.None;
|
||||||
|
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
foreColor = UIFontColor.Primary;
|
foreColor = UIFontColor.Primary;
|
||||||
fillColor = UIColor.LightBlue;
|
fillColor = UIColor.LightBlue;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
//设置为单选边框
|
//设置为单选边框
|
||||||
BorderStyle = BorderStyle.FixedSingle;
|
BorderStyle = BorderStyle.FixedSingle;
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
base.ForeColor = UIFontColor.Primary;
|
base.ForeColor = UIFontColor.Primary;
|
||||||
Width = 150;
|
Width = 150;
|
||||||
base.MaxLength = 32767;
|
base.MaxLength = 32767;
|
||||||
|
@ -166,7 +166,7 @@ namespace Sunny.UI
|
|||||||
Height = 35;
|
Height = 35;
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
Cursor = Cursors.Hand;
|
Cursor = Cursors.Hand;
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -36,7 +36,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
public UILabel()
|
public UILabel()
|
||||||
{
|
{
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
base.TextAlign = ContentAlignment.MiddleLeft;
|
base.TextAlign = ContentAlignment.MiddleLeft;
|
||||||
ForeColorChanged += UILabel_ForeColorChanged;
|
ForeColorChanged += UILabel_ForeColorChanged;
|
||||||
@ -156,7 +156,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
public UILinkLabel()
|
public UILinkLabel()
|
||||||
{
|
{
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
LinkBehavior = LinkBehavior.AlwaysUnderline;
|
LinkBehavior = LinkBehavior.AlwaysUnderline;
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
|
|
||||||
|
@ -755,7 +755,7 @@ namespace Sunny.UI
|
|||||||
//
|
//
|
||||||
BorderStyle = BorderStyle.FixedSingle;
|
BorderStyle = BorderStyle.FixedSingle;
|
||||||
DrawMode = DrawMode.OwnerDrawFixed;
|
DrawMode = DrawMode.OwnerDrawFixed;
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
IntegralHeight = false;
|
IntegralHeight = false;
|
||||||
ItemHeight = 25;
|
ItemHeight = 25;
|
||||||
Size = new Size(150, 200);
|
Size = new Size(150, 200);
|
||||||
|
@ -51,7 +51,7 @@ namespace Sunny.UI
|
|||||||
//SetStyle(ControlStyles.ResizeRedraw, true);
|
//SetStyle(ControlStyles.ResizeRedraw, true);
|
||||||
DoubleBuffered = true;
|
DoubleBuffered = true;
|
||||||
UpdateStyles();
|
UpdateStyles();
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
|
|
||||||
NavBarMenu.VisibleChanged += NavBarMenu_VisibleChanged;
|
NavBarMenu.VisibleChanged += NavBarMenu_VisibleChanged;
|
||||||
Dock = DockStyle.Top;
|
Dock = DockStyle.Top;
|
||||||
@ -328,7 +328,7 @@ namespace Sunny.UI
|
|||||||
set => NavBarMenu.ImageList = value;
|
set => NavBarMenu.ImageList = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Font dropMenuFont = UIFontColor.Font;
|
private Font dropMenuFont = UIFontColor.Font();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标题字体
|
/// 标题字体
|
||||||
|
@ -61,7 +61,7 @@ namespace Sunny.UI
|
|||||||
//ShowRootLines = false;
|
//ShowRootLines = false;
|
||||||
|
|
||||||
DoubleBuffered = true;
|
DoubleBuffered = true;
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
//CheckBoxes = false;
|
//CheckBoxes = false;
|
||||||
ItemHeight = 50;
|
ItemHeight = 50;
|
||||||
BackColor = Color.FromArgb(56, 56, 56);
|
BackColor = Color.FromArgb(56, 56, 56);
|
||||||
@ -260,10 +260,10 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Font tipsFont = new Font("Microsoft Sans Serif", 9);
|
private Font tipsFont = UIFontColor.SubFont();
|
||||||
|
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "Microsoft Sans Serif, 9pt")]
|
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get => tipsFont;
|
get => tipsFont;
|
||||||
|
@ -49,7 +49,7 @@ namespace Sunny.UI
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
AutoScaleMode = AutoScaleMode.None;
|
AutoScaleMode = AutoScaleMode.None;
|
||||||
base.Font = UIFontColor.Font;
|
base.Font = UIFontColor.Font();
|
||||||
base.MinimumSize = new System.Drawing.Size(1, 1);
|
base.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
SetStyleFlags(true, false);
|
SetStyleFlags(true, false);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
ItemSize = new Size(150, 40);
|
ItemSize = new Size(150, 40);
|
||||||
DrawMode = TabDrawMode.OwnerDrawFixed;
|
DrawMode = TabDrawMode.OwnerDrawFixed;
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
AfterSetFillColor(FillColor);
|
AfterSetFillColor(FillColor);
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
ItemSize = new Size(40, 200);
|
ItemSize = new Size(40, 200);
|
||||||
DrawMode = TabDrawMode.OwnerDrawFixed;
|
DrawMode = TabDrawMode.OwnerDrawFixed;
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
AfterSetFillColor(FillColor);
|
AfterSetFillColor(FillColor);
|
||||||
Size = new Size(450, 270);
|
Size = new Size(450, 270);
|
||||||
Version = UIGlobal.Version;
|
Version = UIGlobal.Version;
|
||||||
|
@ -55,7 +55,7 @@ namespace Sunny.UI
|
|||||||
CalcEditHeight();
|
CalcEditHeight();
|
||||||
Height = MinHeight;
|
Height = MinHeight;
|
||||||
ShowText = false;
|
ShowText = false;
|
||||||
Font = UIFontColor.Font;
|
Font = UIFontColor.Font();
|
||||||
Padding = new Padding(0);
|
Padding = new Padding(0);
|
||||||
MinimumSize = new Size(1, 16);
|
MinimumSize = new Size(1, 16);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ namespace Sunny.UI
|
|||||||
float size = 0;
|
float size = 0;
|
||||||
foreach (var info in Option.Infos)
|
foreach (var info in Option.Infos)
|
||||||
{
|
{
|
||||||
SizeF sf = info.Text.MeasureString(UIFontColor.Font);
|
SizeF sf = info.Text.MeasureString(Font);
|
||||||
size = Math.Max(sf.Width, size);
|
size = Math.Max(sf.Width, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,7 +432,7 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标题字体
|
/// 标题字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Font titleFont = UIFontColor.Font;
|
private Font titleFont = UIFontColor.Font();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标题字体
|
/// 标题字体
|
||||||
|
2
SunnyUI/Forms/UILoginForm.Designer.cs
generated
2
SunnyUI/Forms/UILoginForm.Designer.cs
generated
@ -170,7 +170,7 @@
|
|||||||
this.lblSubText.Name = "lblSubText";
|
this.lblSubText.Name = "lblSubText";
|
||||||
this.lblSubText.Size = new System.Drawing.Size(310, 26);
|
this.lblSubText.Size = new System.Drawing.Size(310, 26);
|
||||||
this.lblSubText.TabIndex = 7;
|
this.lblSubText.TabIndex = 7;
|
||||||
this.lblSubText.Text = "SunnyUI V2.2.5";
|
this.lblSubText.Text = "SunnyUI";
|
||||||
this.lblSubText.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.lblSubText.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// uiLabel1
|
// uiLabel1
|
||||||
|
@ -474,7 +474,7 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标题字体
|
/// 标题字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Font titleFont = UIFontColor.Font;
|
private Font titleFont = UIFontColor.Font();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标题字体
|
/// 标题字体
|
||||||
|
@ -705,23 +705,23 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 默认字体
|
/// 默认字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly Font Font = new Font("微软雅黑", 12, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
public static Font Font()
|
||||||
|
|
||||||
public static Font CreateFont()
|
|
||||||
{
|
{
|
||||||
return new Font("微软雅黑", 12, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
return new Font("微软雅黑", FontSize, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static float FontSize = 12;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 默认字体
|
/// 默认二级字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly Font SubFont = new Font("微软雅黑", 9, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
public static Font SubFont()
|
||||||
|
|
||||||
public static Font CreateSubFont()
|
|
||||||
{
|
{
|
||||||
return new Font("微软雅黑", 9, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
return new Font("微软雅黑", SubFontSize, FontStyle.Regular, GraphicsUnit.Point, GdiCharSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static float SubFontSize = 9;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 主要颜色
|
/// 主要颜色
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user