-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icons is not always shown. #65
Comments
Hi @dubstab96 , Thanks for reaching out. Can you provide some more context, e.g. what specific icons and with what controls you use them? |
Im using mostly IconButton and IconPictureBox in my application. Sometimes there are no icons showing, sometimes some shows and some others not and sometimes everything works just fine. I don't know if this is kind of VStudio Debugger problem, seems to happens on builded app also. |
Looks cool! There were some recent fixes regarding WinForms font selection, e.g. by explicitly setting the FontStyle, cf.:
Not sure what NuGet-version you are using. |
Im using FontAwesome.Sharp version 5.15.3 |
Ok, did you tree setting the FontStyle explicitly? |
Yes, just found out that it was set to Auto. I will set every control with the right IconFont and i will let you know if the problem is solved :) |
Ok, this looks like a problem with initialization order, i.e. fonts are not yet fully loaded.
Could you provide the whole stack-trace here? |
i'm not sure if this is what you need. This exception was originally thrown at this call stack: |
Looks like this line here, cf.:
Yes, this should help. Just for completeness: Which .NET/Core- and OS-version are you using? Will also check for possible side-effects with https://github.com/IgnaceMaes/MaterialSkin Not sure when i can promise you feedback on this. Would you be able or willing to submit a pull request? |
I am using .NET Version 4.8.04084 I am sorry but this project is taking the 110% out of me. Maybe some time in the future :) Thank you for your help, |
Ok, no problem. Target system is the same i guess, i.e Win10, net48? |
Yes, |
Hi @dubstab96, ok for you to close the issue then? |
Of course. Thank you very much for your help |
I have a WinForms application that i am building with C# and sometimes the icons is not showing at all. After an app restart maybe they will.
The text was updated successfully, but these errors were encountered: