This is the purview of AOSP’s system-wide configuration options:
#!/usr/bin/env sh
adb shell cmd activity start --user 0 -a android.intent.action.VIEW -n com.android.settings/com.android.settings.FontSizeSettingsForSetupWizardActivity -f 0 com.android.settings
…which others corroborate:
I suggest that you, instead, request a superset of issuetracker.google.com/issues/240247467#comment3; request that AOSP expose modifying the typeface OS-wide.
I’ve yet to observe this feature in any, and I’ve utilised > 40 by now. Why would they, when FontConfig already exists?