2

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 ?

Abu Yousuf
  • 5,729
  • 3
  • 31
  • 50

1 Answers1

0

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.

Yuri Schimke
  • 12,435
  • 3
  • 35
  • 69