Sample Header Ad - 728x90

How can I (programmatically) switch the OS font?

1 vote
0 answers
248 views
##### Research com.android.customization.picker.CustomizationPickerActivity and com.android.settings do not include any references to fonts on my OS installation. Gemini states the undermentioned when I search for "change font android 14 adb" into Google:
1. Find a TrueType Font (.ttf) file that you want to use as your system font. 1. Use the adb push command to copy your font file to the system directory on your device: ~~~sh #!/usr/bin/env sh adb push font.ttf /system/fonts ~~~ 1. ~~~sh #!/usr/bin/env sh adb shell 'wm set font font.ttf' ~~~
However, it doesn't cite a source, and explicitly searching for "wm set" android yields 0 results. I'd regardless have reason to believe this, except that com.android.theme.font.notoserifsource is preinstalled on my device, and I'd be fairly surprised for a font to be packaged as an APK if including one were truly as trivial as including a mere TTF file in /system/fonts. ##### Meta I don't mind which version you utilise to demonstrate whatever point you consider pertinent, but I'm using [my OEM (Fairphone)'s distribution of cpe:/o:google:android:14](https://forum.fairphone.com/t/what-are-official-cpe-designations-for-the-fp-devices/110522/4?u=rokejulianlockhart#:~:text=They%20stated:-,We%20have%20not%20submitted%20Common%20Platform%20Enumeration%20(CPE)%20designations%20for%20Fairphone%20products%20at%20the%20moment%2C%20however%2C%20our%20team%20is%20looking%20into%20it%20as%20we%20speak.,-Solution) .
Asked by RokeJulianLockhart (556 rep)
Mar 11, 2025, 08:39 AM
Last activity: Apr 26, 2025, 06:20 PM