Windows Program not formatting like Mac
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 46
- Joined: Fri Aug 02, 2013 12:14 am
Windows Program not formatting like Mac
I am creating programs in Mac and when creating standalones for PC has not been much of a difference as to the way it looks as it should.....
But this current program I created is not working. I used a grid field to make the, well, grid for results and in the past making this was not an issue.
The grid on the mac is perfect and the spacing is crunched down for lack of better term on the PC. How can i fix this. I dont see a spot to do this for PC?
Thanks
But this current program I created is not working. I used a grid field to make the, well, grid for results and in the past making this was not an issue.
The grid on the mac is perfect and the spacing is crunched down for lack of better term on the PC. How can i fix this. I dont see a spot to do this for PC?
Thanks
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Windows Program not formatting like Mac
Does changing the field's fixedLineheight improve things?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 46
- Joined: Fri Aug 02, 2013 12:14 am
Re: Windows Program not formatting like Mac
Richard
Thanks so much for the reply. I did have fixed line height on and was working on mac. What I had to do was take FLH off and then set the font to "system", I had it set for arial before. I figured windows and mac had arial standard. That made it work but not sure why it did not transfer settings. Oh well its working now so next app will see what happens.
Maybe you can help me with putting this on an iphone. I will post an issue with an error later or tomorrow in the IOS section. Transporter errors when uploading but I can drop it on my iphone to test??
Thanks so much again
Thanks so much for the reply. I did have fixed line height on and was working on mac. What I had to do was take FLH off and then set the font to "system", I had it set for arial before. I figured windows and mac had arial standard. That made it work but not sure why it did not transfer settings. Oh well its working now so next app will see what happens.
Maybe you can help me with putting this on an iphone. I will post an issue with an error later or tomorrow in the IOS section. Transporter errors when uploading but I can drop it on my iphone to test??
Thanks so much again
Re: Windows Program not formatting like Mac
@ no1g8tor96 - I believe the reason specific settings don't transfer (when it comes to fonts) is that each OS handles them differently in regards to scaling and drawing.
See some of the images linked at the bottom of this article : https://www.ampsoft.net/webdesign-l/Win ... Fonts.html
See some of the images linked at the bottom of this article : https://www.ampsoft.net/webdesign-l/Win ... Fonts.html
-
- Livecode Opensource Backer
- Posts: 46
- Joined: Fri Aug 02, 2013 12:14 am
Re: Windows Program not formatting like Mac
bogs
thanks so much for the relply. It was weird. Had to not specify a font and chose system and works.
thanks so much for the relply. It was weird. Had to not specify a font and chose system and works.
-
- Livecode Opensource Backer
- Posts: 9387
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Windows Program not formatting like Mac
Cross platform, fonts seem to be one of the biggest headaches.
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Windows Program not formatting like Mac
Subtle differences in the font rendering engines for each platform have plagues humanity since the earliest days of GUI systems. I think you just got lucky with regard to the font's native textheight metrics.
"System" will use the OS-mandated system font, which on Windows is no longer Arial. I believe if you query "the effective textFont" of the field you'll confirm that (likely Segoe UI). Perhaps Segoe UI happens to have metrics more in keeping with whatever macOS us using as its system font these days.
"System" will use the OS-mandated system font, which on Windows is no longer Arial. I believe if you query "the effective textFont" of the field you'll confirm that (likely Segoe UI). Perhaps Segoe UI happens to have metrics more in keeping with whatever macOS us using as its system font these days.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Windows Program not formatting like Mac
@ no1g8tor96 , I'd actually recommend using a specific font, either one that any OS your deploying to uses (such as Arial), or one that you include in the package yourself. Either that, or use images for everything. Just keep in mind that using images can get to be a lot more work.
There are several reasons for this, not the least of which is that the system font can be VERY different on an end user's system than yours.
There are lots of things you can do to get a consistent look, for instance, setting the width of a field or button to the formattedWidth of the text within it. You'll still have to look at it on the different systems you plan to deploy too, though, you may find that something like this -
set the width of field "myField" to (the formattedWidth of field "myField" +10)
may look better than setting it exactly to the width of the text inside it.
Just some food for thought.
Ps- I see Richard chimed in as well.
There are several reasons for this, not the least of which is that the system font can be VERY different on an end user's system than yours.
There are lots of things you can do to get a consistent look, for instance, setting the width of a field or button to the formattedWidth of the text within it. You'll still have to look at it on the different systems you plan to deploy too, though, you may find that something like this -
set the width of field "myField" to (the formattedWidth of field "myField" +10)
may look better than setting it exactly to the width of the text inside it.
Just some food for thought.
Ps- I see Richard chimed in as well.
Re: Windows Program not formatting like Mac
Font metrics are a pain all round, so take all that's been said on board. But also check the default margins are appropriate for the fields that have the rendering issue.