You can use your app's fonts in mobile guides in order to keep your mobile guides with the same look and feel as your application.
The way to use custom fonts is to add them to your app's Theme and assign them to visual elements in your guide.
Define a custom font
- Go to Guides > Themes to update your app's theme.
- Select a specific typology in your theme (for example 'Title').
- On the right-hand side, under 'Text Styles' open the Family dropdown.
- You will see a list of supported iOS / Android system fonts.
-
Select + Manage custom fonts.
- Type the font file name as defined in your application. Use the exact file name used by your app (case sensitive).
- If you have several font files, you can add them all (for example bold, italic etc).
- Now select the new font you added in any of the theme-specific typologies (Title, Primary Button etc).
- Test that the custom font is configured correctly by creating a guide using this typology and verifying that the custom font is displayed correctly in your device.
- Since mobile custom fonts are not supported by the browser, you will not be able to see the font in the web preview of the guide.
Enter the font's file name as defined in your application
You can edit and remove a custom font any time by accessing '+ Manage Custom Fonts':
Manage custom fonts
Custom fonts for Android
- The font file should reside under the following path: "/res/font"
- Supported font formats: XML, TTF.
[Android custom fonts location]
Custom fonts for iOS
Supported font formats: TTF and OTF.