awesome-inc / FontAwesome.Sharp

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

Font Awesome Pro ? #15

Closed mfruhner closed 5 years ago

mfruhner commented 6 years ago

Hello, I managed to implement this into our application, but now I am wondering, if you support FA Pro as well. As our designer used almost Pro Icons only, this would be great. I could not find information about this in the project.

Greetings, Maik

mkoertgen commented 6 years ago

Hm, at this time we don't support FA Pro, simply because we don't own a license by now. But integrating FA font should be straight forward in a manner like we did for Material Design, cf.:

mkoertgen commented 6 years ago

@mfruhner If you gonna try let me know how you are doing and we can probably help.

leomurillo commented 5 years ago

The steps I followed:

  1. Download your pro web fonts.
  2. Identify in your downloaded web font files \css\fontawesome.css
  3. Replace fontawesome.css in \FontAwesome.Sharp\FontEnumGenerator\Content with this file
  4. Run FontEnumGenerator, this will generate a new IconChar.cs
  5. Replace \FontAwesome.Sharp\FontAwesome.Sharp\IconChar.cs with the newly generated one.
  6. From the downloaded fonts copy the \webfonts\fa-*.ttf files, paste them at \FontAwesome.Sharp\FontAwesome.Sharp\fonts. Besides overwriting the three free font files, you will see two new ones: fa-duotone-900.ttf and fa-light-300.ttf.
  7. Rebuild the FontAwesome.Sharp project. You'll get the new FontAwesome.Sharp.dll with all pro icons

If you get Invalid Assemby Errors when you first build. Add in Properties\AssemblyInfo.cs the following: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]

mkoertgen commented 5 years ago

@leomurillo thanks for guidance in building the pro-version. Maybe we can add this to the docs?

mkoertgen commented 5 years ago

Closed due to inactivity