-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
42 lines (33 loc) · 1.37 KB
/
Program.cs
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
namespace LOS_Installer
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
//void InitCustomLabelFont() {
// //Create your private font collection object.
// PrivateFontCollection pfc = new PrivateFontCollection();
// //Select your font from the resources.
// //My font here is "SVN_Avo.ttf"
// int fontLength = Properties.Resources.SVN_Avo.Length;
// // create a buffer to read in to
// byte[] fontdata = Properties.Resources.SVN_Avo;
// // create an unsafe memory block for the font data
// System.IntPtr data = Marshal.AllocCoTaskMem(fontLength);
// // copy the bytes to the unsafe memory block
// Marshal.Copy(fontdata, 0, data, fontLength);
// // pass the font to the font collection
// pfc.AddMemoryFont(data, fontLength);
//}
////After that we can create font and assign font to label
//label1.Font = new Font(pfc.Families[0], label1.Font.Size);
//label1.Text = "My new font";
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}