Change default IconFont.ttf

Hi
I´m trying to show an iconFont (/ue700) inside IconosCrearLista.ttf, located in Assets folder, but i´m not able to achieve it...
I´m using the following code:


<inputLayout:SfTextInputLayout
                    Hint="Nombre"
                    HelperText="Nombre de la lista"
                    ContainerType="Outlined"
                    OutlineCornerRadius="8"
                    InputViewPadding="5"
                    >
                    <Entry />
                    <inputLayout:SfTextInputLayout.LeadingView>
                        <Label
                            FontFamily="/Assets/IconosCrearLista.ttf"
                            Text="&#xe700;">
                        </Label>
                    </inputLayout:SfTextInputLayout.LeadingView>
</inputLayout:SfTextInputLayout>


What am i doing wrong?
Any missing steps?
What are the correct steps to show my icons?
and if i don´t use FontFamily="/Assets/IconosCrearLista.ttf", and use &#x1F5D3; it shows me a calendar icon....where is that ttf iconfont located?

Thanks in advance

3 Replies

AS Anandraj Selvam Syncfusion Team April 30, 2020 12:25 PM UTC

Hi Luis Gomez, 
  
Greetings from the Syncfusion. 
  
We have checked the provided code snippet and worked at our end by displaying the custom icon using UIFontIcons.ttf as per in below code snippet  
  
 Code Snippet: 
  
<inputLayout:SfTextInputLayout 
                    Hint="Nombre" 
                    HelperText="Nombre de la lista" 
                    ContainerType="Outlined" 
                    OutlineCornerRadius="8" 
                    InputViewPadding="5" 
                    > 
            <Entry /> 
            <inputLayout:SfTextInputLayout.LeadingView> 
                <Label FontFamily="/Assets/UIFontIcons.ttf#UIFontIcons" 
                            Text="&#xe742;"> 
                </Label> 
            </inputLayout:SfTextInputLayout.LeadingView> 
        </inputLayout:SfTextInputLayout> 
  
  
What am i doing wrong?  
  
We suspected that may be build property of that provided ttf file is not properly mentioned based on the platform specific. For that please refer the below link 
  
  
Regards, 
Anand Raj S. 



LG Luis Gomez April 30, 2020 01:47 PM UTC

Thanks!
It works.



HM Hemalatha Marikumar Syncfusion Team May 1, 2020 05:25 AM UTC

Hi Luis Gomez, 
 
We are glad to hear that given solution works. 
 
If you need any further assistance, please don't hesitate to contact us. 
 
Regards
Hemalatha M.
 


Loader.
Up arrow icon