In RB2012r2.1 the default Font Text unit is Pixel.
Now, when migrating desktop projects to Xojo 2017r1.1
all my labels become Point instead of Pixel
since I always used the default in RB.
Could this be corrected project-wide, or is it a manual task?
I’m using Windows 7/64.
Did it cause problems? I only ask because if you want to use HiDPI, you need them yo be in Points.
For all intents and purposes, prior to HiDPI, pixel and point was just the same thing : 1/72nd of an inch).
Since the advent of HiDPI, pixel size may vary (1/72nd or 1/144th of an inch), so it makes a lot of sense that point be used, and precisely older projects run unmodified.
Well, not problems but labour (and thus also the risk of mistakes).
I’m using a lot of large text, and have no HiDPI deployed.
And I’m lazy.
[quote=329752:@Lennart Ramberg]Well, not problems but labour (and thus also the risk of mistakes).
I’m using a lot of large text, and have no HiDPI deployed.
And I’m lazy.[/quote]
Then you have nothing to do. Rendition should be identical.
100 Points (left) and 100 Pixels (right):
http://imgur.com/a/U1lFd
On Windows, one pixel on a non-HiDPI screen is 1/96th of an inch. Hence the typographical point of 1/72nd of an inch is different indeed. From the frame of the window on the left of your picture, I would guess this is the platform you are on.
The difference in size on your picture corresponds to the difference between 1/72nd an inch points, and smaller 1/96th an inch pixels.
I have no magic idea. Beyond patiently going through all your controls.
The potential gain is that on Mac and Windows, points are the same.
Thanks.
if you must change them all.
- save the project as XML
- load into a text editor
- figure out the correct string to replace
- global find and replace it
- save the project (WITH A NEW NAME JUST IN CASE!!!)
- and see if that did it for you…
but there should be no reason to do so…
Excellent!
Thank you.