C
Chris
Hi,
I need a combobox populated with system fonts and was wondering if the
following would be adequate:
Declare
"FontFamily[] ff = FontFamily.Families;"
as a form member.
In form constructor populate combo box as follows:
"for (int i = 0; i < ff.Length; i++)
{
comboBox1.Items.Add(ff.Name);
}"
and then event in combobox:
"richTextBox1.SelectionFont = new Font(comboBox1.Text, comboBox2.Text);"
Does the above present any problems I should know about?
Would using something like:
"ff[x].IsStyleAvailable(FontStyle.Regular))"
check if the font is available in the stated format on the users machine?
Any help would be greatly appreciated.
Chris
I need a combobox populated with system fonts and was wondering if the
following would be adequate:
Declare
"FontFamily[] ff = FontFamily.Families;"
as a form member.
In form constructor populate combo box as follows:
"for (int i = 0; i < ff.Length; i++)
{
comboBox1.Items.Add(ff.Name);
}"
and then event in combobox:
"richTextBox1.SelectionFont = new Font(comboBox1.Text, comboBox2.Text);"
Does the above present any problems I should know about?
Would using something like:
"ff[x].IsStyleAvailable(FontStyle.Regular))"
check if the font is available in the stated format on the users machine?
Any help would be greatly appreciated.
Chris