android / wear-os-samples

Multiple samples showing best practices in app and watch face development on Wear OS.
https://developer.android.com/wear
Apache License 2.0
1.09k stars 567 forks source link

Changing Complication Typeface #195

Open MuhammadBemath opened 2 years ago

MuhammadBemath commented 2 years ago

Hi. In the WatchFaceAlphaKotlin sample, changing the textTypeface and/or titleTypeface values of the complications doesn't seem to affect the what is displayed on the watch. Can anyone assist?

alexvanyo commented 2 years ago

What values are you setting textTypeface/titleTypeface to that you aren't seeing take affect?

MuhammadBemath commented 2 years ago

I've tried using two downloadable fonts as follows: app:textTypeface="@font/michroma" app:textTypeface="@font/sarpanch" and similar with the titleTypeface.

I've also tried adding the fonts to the project. None of the methods work however.

Using the default Android fonts (sans-serif, sans-serif-medium, sans-serif-thin; all without @font/) seem to have an effect.

MuhammadBemath commented 2 years ago

Anyone figure this out?