Using Custom Fonts and Icon Fonts
Once you add a custom font, it appears in the Font Family editor drop-down, and you can use it like any other available font. To add or customize fonts, you need a ThemeBuilder license.
Using Custom Typefaces in ThemeBuilder
To change the typeface of the UI components:
-
(Optional) Add a new variable in the Typographies section of THEME STYLES by using the + button.
This optional step helps you scale future updates to component styling. Whenever possible, use variables instead of hard-coded values for UI component properties.
-
Select Advanced Edit to enable drilling down into UI component properties.
-
Select the UI component that you will style.
-
In the COMPONENTS PARTS pane, select the part that contains text.
-
In the PROPERTIES pane, navigate to the Text section and update the properties of the text:
-
If you use variables, select the desired variable with your custom typeface.
-
If you use hard-coded values, select the Set Local Text Properties button and modify the text properties.
-
Using Custom Icon Fonts in ThemeBuilder
To use an icon font, your project must be configured for the Font Icons asset type.
To change the font icons of the UI components:
-
(Optional) Add a new variable in the Typographies section of THEME STYLES by using the + button.
This optional step helps you scale future updates to component styling. Whenever possible, use variables instead of hard-coded values for UI component properties.
-
Select Advanced Edit to enable drilling down into UI component properties.
-
Select the UI component that you will style.
-
In the COMPONENTS PARTS pane, select the icon.
-
In the PROPERTIES pane, navigate to the Text section and update the icon:
-
If you use variables:
- Select the desired variable from the drop-down.
- To open the font icons dialog, select the settings wheel button.
- Click the desired icon and then Select.
-
If you use hard-coded values:
- Select the Set Local Text Properties button.
- Select the desired icon font from the Font Family editor drop-down.
- To open the font icons dialog, select the settings wheel button.
- Click the desired icon and then Select.
-