Close popover

Table of Contents

Modifying the fonts settings file for font customization

Version:

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.
Upload the font files. For more information, see Uploading custom font files.
  1. In the header of Dev Studio, in the search field, enter pyMobileFontsList, and then press Enter.

  2. 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.

  3. On the pyMobileFontsList text file rule configuration screen, save a copy of the text file rule in the context of your application by clicking Save as Specialize by class or ruleset , and then selecting your application in the Context area.

  4. For each of the font files that you upload, in the pyMobileFontsList rule, add a JSON array, according to the following template:

    { url: "myAppName/MyFontNameRegular.ttf", fontFamily: "MyFontName", type: "text" }The parameters define the following attributes:

    url
    Defines the URL address of the font file.
    fontFamily
    Defines the name of the font.
    type
    Defines the type of the font.
  5. Click Save.

Modify your application skin. For more information, see Modifying the application skin for font customization.

  • Mobile app branding and layout

    Before you build a mobile app, you can customize its branding and layout to meet your company's specific requirements. Upload images to Pega Platform, and then use them to customize the splash screen, application icon, and other branding assets.

  • Customizing fonts for the native mobile app components

    Customize the fonts for the text that is displayed on the header or the bottom bar of your mobile app, to conform to your company's branding and to improve readability.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.