简体   繁体   中英

Windows Form Controls - Font not changing for Wingding

I have a Visual Studio 2013 Windows Forms C# project to which I earlier added a button that used the Wingdings 3 font - and it worked. I've since created a new solution and tried the same thing but whenever I select Wingdings as the Font Name for any type of Windows Forms Control it always defaults to the Microsoft Sans Serif font in the Form Designer. For other fonts the Designer picks up the changes. I've also noticed that the same problem also ocurrs in my Visual Studio 2008 environment.

Could I have inadvertently changed an environment setting which disables fonts of certain type?

In visual studio, click on the control and in the property section expand the font section. Change the Font to Wingdings and the GdiCharSet value from 0 to 2. Wingdings should be working for you then.

I'm using Visual Studio 2015. Hopefully your version has the same option.

after reasearching a little on stackoverflow, I come up with this unicode solution:

Unicode alternative

与标签和Wingdings 2有同样的问题2.在控件属性中将UseCompatibleTextRendering设置为True对我有用

Be careful with this font though, it is not a standard font and hence not support by all applications. You may be able to find a standard Unicode alternative

Wingdings font family does not seem to work on Firefox and Opera

gdicharset set to 1 (default) and it will be fixed. Don't move UseCompatibleTextRendering to true, leave it as false.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM