MartinTopfstedt / FontAwesome5

WPF controls for the iconic SVG, font, and CSS toolkit Font Awesome 5.
MIT License
120 stars 23 forks source link

ImageAwesome.CreateImageSource not working #9

Closed sebascomeau closed 5 years ago

sebascomeau commented 5 years ago

I updated the dlls with FA 5.5 Pro by using your tools and also added the light style. This working fine, but if I tried to use the ImageAwesome.CreateImageSource then this is not working.

// set image source of a RibbonApplicationMenuItem
amiRecentDocuments.ImageSource = ImageAwesome.CreateImageSource(FontAwesome5.EFontAwesomeIcon.Light_FolderOpen, Brushes.Black, 24);

Results:

image

Do I need to add the TTF fonts files?

MartinTopfstedt commented 5 years ago

Hi

Yes for the light theme the ttf file must be added.

Am 30.11.2018 um 19:43 schrieb Sébastien Comeau notifications@github.com:

I updated the dlls with FA 5.5 Pro by using your tools and also added the light style. This working fine, but if I tried to use the ImageAwesome.CreateImageSource then this is not working.

// set image source of a RibbonApplicationMenuItem amiRecentDocuments.ImageSource = ImageAwesome.CreateImageSource(FontAwesome5.EFontAwesomeIcon.Light_FolderOpen, Brushes.Black, 24); Results:

Do I need to add the TTF fonts files?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

sebascomeau commented 5 years ago

Does the free font-awesome TTF files are embedded in your ddls?

I also tested with your version without changing it and using free icons and it's doesn't work. There's is no cleared instruction.

MartinTopfstedt commented 5 years ago

Hi

Yes in the uwp and wpf projects under fonts.

You need to remove the free ones and add the pro ttfs.

I can provide a tutorial tomorrow.

Am 30.11.2018 um 20:54 schrieb Sébastien Comeau notifications@github.com:

Does the free font-awesome TTF files are embedded in your ddls?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

MartinTopfstedt commented 5 years ago

Hi,

i created a new repository for the pro Version. (https://github.com/MartinTopfstedt/FontAwesome5.Pro)