schorschii / FsClock-Android

Fullscreen Clock Screensaver for Android Smartphone, Tablet & TV
GNU General Public License v3.0
90 stars 38 forks source link

Use system fonts and/or user-installed fonts #46

Open GermanKiwi opened 5 months ago

GermanKiwi commented 5 months ago

Is it possible for this app to use the system fonts, or user-installed fonts, for the digital clock?

Example: I have a Samsung Galaxy S24, which has a bunch of system fonts baked into the firmware. Some of those fonts are available via: Settings > Display > Font size and style > Font style, where they can be used as the font for the entire OS:

There are also other system fonts which are used for the phone's lockscreen clock:

In addition, it's possible to install fonts from the Play Store or Galaxy Store - eg: https://galaxystore.samsung.com/detail/com.monotype.android.font.samsungsans

So is it possible for the FsClock app to use these system or user-installed fonts?

If not, what about supporting TTF files? Eg. if I saved a TTF font file on the phone's storage at a location like this: /Android/data/systems.sieber.fsclock/fonts

...then perhaps the app could detect this file and include in the list of available fonts for the time and date?