awesome-inc / FontAwesome.Sharp

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

TestWpf doesn´t run #82

Closed moramatte closed 2 years ago

moramatte commented 2 years ago

The TestWpf application crashes immediately. (TestForms works).

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Set TestWpf as startup project
  3. Press F5 to debug the application
  4. See error: Crash (Value cannot be null. (Parameter 'fontFamily')') .. on row 26 in IconBlockBase.cs

Expected behavior No crash - normal start

Desktop (please complete the following information):

mkoertgen commented 2 years ago

Hi @moramatte ,

After a clean build I could reproduce it. The TestWPF contains a tab for testing the pro-fonts which are not available on a fresh clone. I will remove the pro-tab on the main branch.

mkoertgen commented 2 years ago

Removed the pro-examples on the main branch. Should be fixed.

moramatte commented 2 years ago

Thanks. A control question: We are looking for a component that will allow us to use multicolor icon fonts with custom made icons. Do you think your component will do the trick, if I follow the steps under "Custom fonts"? Is css required, or can we do simply with a otf font? Regards, Moramatte

mkoertgen commented 2 years ago

Hi @moramatte ,

I don't think glyph-font-approaches are a good fit for multi-color icons because it's based on, well, fonts. There are probably some theoretical workarounds using stacked icons or something like that. But I guess going down this road, you will lose the main pros of using a font, e.g. not having to care a fair bit about crafting your icons.