Custom font in TileService UI

108 views Asked by At

In TileService for font style we have to use LayoutElementBuilders.FontStyle to change font style. But in LayoutElementBuilders.FontStyle.Builder and LayoutElementBuilders.Text class I can't see any method for custom font.

Is TileService new UI Builder api support custom font?

How can i set custom font in TileService UI ?

1

There are 1 answers

0
Yuri Schimke On

It's not a supported feature. Tiles are rendered in a different process, so don't automatically have the same fonts.

See https://github.com/android/wear-os-samples/issues/153

Setting custom fonts in tiles is not allowed as tiles are rendering in a system context and so there are security concerns with loading fonts into a privileged process.