Forum Archive

Pythonista Font Size

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

@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.

DavinE

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

@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

JonB

@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')
DavinE

@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

@DavinE said:

how can i post a pic in my Topic ?

Same question and answer here

DavinE

Thanks @cvp