I try Defining a Font Fallback Sequence in Code , i refer at here
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
FontFamily f = new FontFamily("Comic Sans MS, Verdana");
}
}
but i have i error: "Additional information: Font 'Comic Sans MS, Verdana' cannot be found."
how to Defining a Font Fallback Sequence in Code.
Because "Comic Sans MS, Verdana" is no font name. You can define a font name array.And you can add names to this array.
string[] fontName = new string[] { "Comic Sans MS", "Verdana" };
FontFamily f = new FontFamily(fontName[0]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With