omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello β€” I'm @olemoritz on Twitter.


    Font size not changing with certain fonts

    Pythonista
    2
    4
    1994
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • donnieh
      donnieh last edited by

      If I choose '<system>' 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 '<system>' 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?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

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

        1 Reply Last reply Reply Quote 0
        • donnieh
          donnieh last edited by

          Whoops 😩

          1 Reply Last reply Reply Quote 0
          • donnieh
            donnieh last edited by donnieh

            🚢🏼... walk of shame

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors