Modifying the fonts settings file for font customization
You customize the fonts for the text that is displayed on native elements of your mobile
app, for example, to conform to your company's branding or to improve readability. After you
upload custom fonts, modify the fonts list for your mobile app.
- In the header of Dev Studio, in the search field, enter pyMobileFontsList, and then press Enter.
- In the search results, expand the list of matches by clicking the arrow next to the pyMobileFontsList link, and then open the text file rule by clicking the link for the UI-Kit 7 ruleset.
- On the pyMobileFontsList text file rule configuration screen, save a copy of the text file rule in the context of your application by clicking , and then selecting your application in the Context area.
- For each of the font files that you upload, in the
pyMobileFontsList rule, add a JSON array, according to the
following template:The parameters define the following attributes:
{ url: "myAppName/MyFontNameRegular.ttf", fontFamily: "MyFontName", type: "text" }
url
- Defines the URL address of the font file.
fontFamily
- Defines the name of the font.
type
- Defines the type of the font.
- Click Save.
Previous topic Uploading custom font files Next topic Modifying the application skin for font customization