我不知道如何将所有文本样式放在 asp.net 的下拉列表中。你能帮助我吗 ?我是新手
问问题
112 次
2 回答
0
使用System.Drawing.Text.InstalledFontCollection类列出服务器上安装的所有字体。请注意,某些这些字体在客户端可能不可用。
using System.Drawing.Text;
...
InstalledFontCollection inst = new InstalledFontCollection();
foreach (FontFamily fnt in inst.Families)
{
comboBox.Items.Add(fnt.Name);
}
于 2013-03-26T19:38:40.280 回答
0
如果您想使用服务器的字体而不关心客户端是否有它们,那么使用 Alexander 的答案来获取可用字体的列表。
如果要显示客户端可用的字体,则可以使用 flash。
于 2013-03-27T12:05:47.167 回答