开发者

List of fonts in Silverlight 4

Am using Silverlight 4. I want to populate a combobox with a list of the fonts available. I have searched high and low and can't find a way to do this. Seems be a lot of dead ends. There was a similar question asked in May but with no suitable answer.

Sur开发者_开发技巧ely its not impossible?


If you mean this question I stick by my previous answer also posted there:

Generate a lookup table for Silverlight:

There is insufficient information provided in Silverlight to get the full font names without some form of lookup table.

I also provided the WPF code to generate such a table, in that previous question. If you do create such a lookup table, for the most common fonts, then the problem is solved.

That creation task just needs to be run on a machine with lots of fonts (or at least the fonts relevant to your target audience).

Anyone out there (with lots of fonts installed) care to generate a C# compatible table, using my source, and post it for cut & paste? :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜