Change Font Family with JS code from external resources

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

is it possible to change font family from external resources?

i want change font family dynamically in application from external resources (i.e https://fonts.google.com/).

i have to read API documentation about "kony.theme.createThemeFromJsonString". but i have no idea how to use it.

if is possible, can you give me sample app?

Hi ,

Changing the font of the widget at runtime is nothing but modifying a skin, which is not possible. We can not modify a created skin at runtime.

The API which you have mentioned will create or modify a new theme in the application. To this API you need to pass the skin as JSON and the font should be the existent one. If you are looking to import other fonts then you need to use the custom font option to import the user-defined fonts in your application.

Is it possible to create a new skin at runtime?

No, it's not possible to create a skin at runtime.