Skip to content
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

Error with Awesome Pro on .net 8 winforms project #134

Open
bmsengin opened this issue Aug 14, 2024 · 2 comments
Open

Error with Awesome Pro on .net 8 winforms project #134

bmsengin opened this issue Aug 14, 2024 · 2 comments

Comments

@bmsengin
Copy link

Describe the bug
When I try to drag/drop a FontAwesome.Sharp control on a form I have an error

image

To Reproduce
Steps to reproduce the behavior:

  1. I have install FontAwesome.Sharp.Pro

image

  1. I have embeded .ttf files

image

@bmsengin
Copy link
Author

bmsengin commented Aug 16, 2024

I have found a part of the bug

In ProFonts.cs, duatone need to be put in comment :

private static readonly string[] FontFiles = { "fa-regular-400-pro.ttf", "fa-solid-900-pro.ttf", "fa-light-300-pro.ttf", "fa-thin-100-pro.ttf" //"fa-duotone-900-pro.ttf" };

And the font files inclued need to have correct name :

fa-light-300-pro.ttf
fa-regular-400-pro.ttf
fa-solid-900-pro.ttf
fa-thin-100-pro.ttf

With this fix, it work by creating Control with code, but i have still the same error on VS conception mode

@mkoertgen
Copy link
Member

Hi @bmsengin ,

Thanks for reaching out. It's been a while that someone used the pro-fonts on WinForms.
You might also try to regenerate & update the pro-enums as described in the docs.

Think about contributing with a pull-request. ❤️👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants