A fast answer before going to bed.
Don't use pt. pt was just an introduction to DPI, but it appears that
the problem is more complex. I'm introducing dp/sp notation, same as
android.
My experiments today showed that using pt for fontsize is not good:
having the exact fontsize on both desktop and mobile doesn't look good,
because you expect to have it smaller on the mobile. Try with the 1.4.1,
put some text, do a whole helol world ui, you'll see.
dp/sp notation will resolve it, and the calculation will be much simpler:
px = dp * density, density is 1 for 160dpi screen on android, and 1 for
96 dpi on desktop.
The current work is available on the fixes-dpi branch, checkout, make
force, and try the showcase example with:
- normal: python examples/demo/showcase/main.py
- simulate the rendering on a phone (htc one x, 320dpi):
KIVY_DPI_DENSITY=2 python examples/demo/showcase/main.py --size 1280x720
- simulate the rendering on a phone (motorola droid x, 240dpi):
KIVY_DPI_DENSITY=1.5 python examples/demo/showcase/main.py --size 854x480
Type F1, and check the Settings.
It's a work in progress, done during this day. We need test and fixes
all the widgets with the new notation. I want to push the change in
master as soon as possible, and will annouce it before the release,
because i've removed the hack for px/fontsize.
Good night,
Mathieu
Le 01/11/2012 03:50, T500 a �crit :
> --
>
>