Forum Archive

Font size not changing with certain fonts

donnieh

If I choose '' font for a text field, I can change the font size just fine, for example:

self.tf.font = ('<system>', 20) #works good

But if I do not use '' font and use a desired one, the font size is ignored. However a font size of 0 in this case will make it disappear. For example:

self.tf.font = ('ArialRoundedMT', 50) #has no effect
self.tf.font = ('ArialRoundedMT', 10) #has no effect
self.tf.font = ('ArialRoundedMT',  0) #text disappears

Has anyone seen this?

omz

That's probably because 'ArialRoundedMT' doesn't exist on iOS. Try 'ArialRoundedMTBold'.

donnieh

Whoops 😩

donnieh

🚢🏼... walk of shame