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.


    Pythonista Font Size

    Pythonista
    4
    8
    1767
    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.
    • DavinE
      DavinE last edited by DavinE

      Hey Guys,

      i have some Problems when i change the font size in my IOS Settings any Text is larger than it must...

      Is it Possible to change that ?

      look at my pics to see more

      Pic_large
      Pic_normal

      Thanks ;)

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @DavinE last edited by

        @DavinE, not 100% sure what your problem is, but all views with text have a font property that you can use to set the size exactly like you want it. Would have to experiment a bit, but I think that other fonts than <system> do not change with iOS system settings.

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

          i think you don't unterstand it correct ^^
          my english is too bad to say it better :(

          an other Try...

          i have two devices iPhone one and two...
          the first one got the standard font settings in the IOS
          the second one change the font size in the IOS Settings and its to big...
          the font size from Pythonista don't overwrite the IOS Settings

          is that possible to do that ?

          i hope its better to understand

          cvp 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @DavinE last edited by cvp

            @DavinE Perhaps, I also don't understand your problem, but did you try to change the Pythonista font size in its settings?

            Edit: I suppose I'm wrong because this only changes the code font, not any ui texts fonts.
            Thus, sorry

            DavinE 1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              @DavinE

              For tables, You must set the font size as the second element of a tuple, on your listdatasource font attribute:

              import ui
              import faker
              factory=faker.Factory().create()
              l=[factory.text() for i in range(10)]
              listsource=ui.ListDataSource(l)
              tbl=ui.TableView(frame=[0,0,300,768])
              tbl.data_source=listsource
              
              # change 12 to whatever font size you want
              listsource.font=('American Typewriter',12)
              tbl.present('sheet')
              
              1 Reply Last reply Reply Quote 0
              • DavinE
                DavinE @cvp last edited by

                @cvp said:

                @DavinE Perhaps, I also don't understand your problem, but did you try to change the Pythonista font size in its settings?

                Edit: I suppose I'm wrong because this only changes the code font, not any ui texts fonts.
                Thus, sorry

                yeah that was wrong :D but @JonB solved it

                i only used it for datasource.font ;)

                @cvp how can i post a pic in my Topic ? i don't get it....

                cvp 1 Reply Last reply Reply Quote 0
                • cvp
                  cvp @DavinE last edited by

                  @DavinE said:

                  how can i post a pic in my Topic ?

                  Same question and answer here

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

                    Thanks @cvp

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