awesome-inc / FontAwesome.Sharp

A library for using Font Awesome in WPF & Windows Forms applications
Apache License 2.0
385 stars 89 forks source link

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

Open bmsengin opened 1 month ago

bmsengin commented 1 month ago

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 commented 4 weeks ago

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 commented 1 week ago

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. ❤️👌