Skip to first unread message

Jeff Boyer

unread,
May 7, 2019, 11:38:34 PM5/7/19
to MIT App Inventor Forum

I would like to set the font for my app and then not allow Android to change it to the font style/size in Android "settings". I noticed that most apps do this, but AI2 allows the Android settings to override my app's font settings. Is there a way with AI2 to keep font settings unchanged by Android's font settings? Thx

SteveJG

unread,
May 8, 2019, 8:58:08 AM5/8/19
to MIT App Inventor Forum
You can change your app's default font in your device's Settings. (Display>Font style > and a List of available fonts appears)

  The device  fault  font will be used  for Labels and TextBoxes etc ( selected on the Screen1 component Properties (default , sans serif , serif or monospace )) if you leave the font setting for the component a default.

Here is an example:   the device font is set on the device to choco cooky  and

0.png

and those components that have the ability to set the font (circled in red) display with choco cooky, the others do not.  What happens if you set the component font to 
sans serif , serif or monospace in App Inventor while using a custom device font?   I do not know.  Experiment and let us know.

As far as I know, developers cannot change the device font setting with code (it has to be done manually).   You can try to use an intent to change the device's font but since it is a system command, I expect the ActivityStarter cannot be used to do that.   You can experiment and let us know Jeff.

Regards,
Steve



Reply all
Reply to author
Forward
0 new messages