This is a migrated thread and some comments may be shown as answers.

Glyph-Icons during design time

5 Answers 423 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 28 Nov 2016, 11:22 AM

I like the new Glyph-feature and use it in my recent project. Unfortunately the Glyph-Icons are not visible during design time in VS 2013, I can only see an empty rectangle. What do I have to do so these icons are also visible during design?

Regards
Heiko

5 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 29 Nov 2016, 11:20 AM
Hello Heiko,

We are aware of this issue and we have logged it in our feedback portal. We have reported this to Microsoft since it is cause by improper resources loading by the design time if the font is referred from the assembly.

One workaround for that is to add the Controls_WPF.csproj from (../Core/Controls in our source code you can download) to the solution and refer that project instead of the Telerik.Windows.Controls.dll. This should fix the problem with glyphs in design time in our controls. And if you want to see locally defined glyphs only, an easier solution is to add the TelerikWebUI.ttf font file to your solution and refer that as a FontFamily for the elements needed in the current project (the file can be found in ../Core/Controls/Themes/Fonts/ in the source code).

We are sorry for the inconvenience caused and we are as well looking forward to this being resolved.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 01 Dec 2016, 11:07 AM

Hello Martin,

thanks for your answer. It is no problem as long as the font appears correct in the compiled UI which it does.

One question: why didn't you choose a font like font-awesom? It is free, it has lots of beautiful icons and is very well known. Your designers could drink another cup of Latte and do not have to design a new font. ;-)

Regards
Heiko

0
Martin
Telerik team
answered on 05 Dec 2016, 12:12 PM
Hello Heiko,

There are several reasons why we have chosen our font instead of a third-party font such as Font Awesome:

- they do not provide all the icons we need for our controls and we cannot make quick requests for any missing or urgently needed ones;
- we have this font in development and it is used in several other Progress products as well;
- it is an internal project, which means there would not be any unexpected changes orbroken scenarios, since we are in direct contact with the team that develops and supports it;
- Font Awesome have stated in their WPF toolkit that they face the same problem with the glyphs in design-time for VS, the same we have reported to Microsoft;
- TelerikWebUI is made by us for us

Third-party font glyphs can still be used in user project of course, but our decision was not to rely so much on a third-party library, as we seek to provide as long-during support for our products as possible with the smallest possible amount of braking changes, which tips the scales significantly in favor of an internal product being used in the default styles of our controls.

We sincerely hope that this slight inconvenience would be resolved soon enough in VS, as we have tried numerous approaches to display them in design time before reporting a bug to MS, but so far the scenario with a resource in an assembly is not working properly still.


Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
Daniel
Top achievements
Rank 1
answered on 17 Oct 2018, 06:55 PM
I'm having a hard time finding out how to add font-awesome to a Telerik WPF app.  Currently I have a ResourceDictionary with the source pointed to the FontResources.xaml for Telerik Glyphs.  I was hoping there would be a similar way to add font-awesome as I need some icons from that pack for my app.
0
Martin Ivanov
Telerik team
answered on 22 Oct 2018, 07:21 AM
Hi Daniel,

I have a small project showing how to load font-awesome at run-time and show a glyph in the UI using RadGlyph. Attaching it here. I hope it helps. 

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Martin
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Daniel
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or