How to use Custom Font with BreadCrumbElement

1 Answer 93 Views
BreadCrumb
Marco
Top achievements
Rank 2
Veteran
Marco asked on 30 Apr 2021, 01:57 PM

Hello,

I have tried to use Custom Font with a BreadCrumb with the purpose of displaying an home icon for the first Element with the following code.

        MyBreadCrumb.BreadCrumbElement.Items(0).Text = ChrW(&HF015)
        MyBreadCrumb.BreadCrumbElement.Items(0).CustomFont = "Font Awesome 5 Free Solid"

But instead of a nice looking home Glyphs I have an old crossed ballot (see attached picture)

I'm missing something ?

By the way, you should take a look at Font Awesome Example  (in VB.NET) in the following page https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/glyphs and correct it. (the ChrW() instead of /uF017, the multiple variable settings instruction in one line).

Thank you for your support

Marco Guignard

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 May 2021, 05:47 AM

Hello, Marco,

In order to display the glyph, it is necessary to specify the CustomFont for the ActionButton.TextElement

        Me.RadBreadCrumb1.BreadCrumbElement.Items(0).Text = ChrW(&HF015)

        Dim button As RadSplitButtonElement = Me.RadBreadCrumb1.BreadCrumbElement.Items(0)
        button.ActionButton.TextElement.CustomFont = "Font Awesome 5 Free Solid" 

Off topic, thank you for sharing the problem with the VB code symbols in the example. We will update the article accordingly.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
BreadCrumb
Asked by
Marco
Top achievements
Rank 2
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or