Problem with text when deploying

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Problem with text when deploying

Post by ChessGredon » Fri May 23, 2014 9:15 pm

Hello there, I made a simple game for two players. In the application there is a label "Player1 is on move" or "Player1 is on move", which detects who is on move. The problem is that during test it looks fine. I tried it on my tablet (Android) - works fine. But surprisingly when I make a standalone for Windows, this label looks horrible. You can see the problem in the pictures - during test and after making standalone for Windows. What could be the problem?
Attachments
afterDeployment.png
duringTest.png

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problem with text when deploying

Post by Simon » Fri May 23, 2014 11:00 pm

Hi ChessGredon,
This looks to me like just the field width is being clipped.
Have you tried increasing the size of the field?
It happens going from Windows to Mac as well.

Simon
Edit: on closer inspection I see that it isn't just the width but some of letters are getting clipped as well.
Do you have liveCode on the Windows machine? Can you try it in the IDE on Windows?
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Re: Problem with text when deploying

Post by ChessGredon » Sat May 24, 2014 1:31 pm

How do I fix this? Also it should be noticed that the "Start" button has also changed his appearance. Perhaps some standalone settings went wrong? When I resize it, it is still with the same problem (but on Android works fine). To resize my objects to fit different resolutions, I used http://forums.runrev.com/viewtopic.php?f=8&t=14859 . Could this be the reason? If you want I can share the stack so that you can see where is the problem.

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Problem with text when deploying

Post by wsamples » Sat May 24, 2014 2:58 pm

I wonder why the font is changed for the standalone.

To test to see whether the resize script is contributing to this problem try deleting it from the stack, or commenting it out.

What version of LiveCode are you using? There have been several bugs reported, and some corrected, regarding text rendering problems in standalones in Windows 7 and 8. Perhaps you can isolate your problem by starting with a card that has only the problematic text field. Build it as a Windows standalone to see if that renders as expected. If it look right, add the script for that field, if it has one. Then, keep doing this while adding one additional control until the problem presents itself again.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problem with text when deploying

Post by Simon » Sat May 24, 2014 5:41 pm

If you want I can share the stack so that you can see where is the problem.
Sure!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Re: Problem with text when deploying

Post by ChessGredon » Sun May 25, 2014 2:46 pm

I removed the resizing script, but still the same problem. I can't attach the .livecode file. How can I post the stack?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Problem with text when deploying

Post by jmburnod » Sun May 25, 2014 2:51 pm

Hi,
I can't attach the .livecode file. How can I post the stack?
Just zip your stack and clic to "upload attachment" below
Best regards
Jean-Marc
https://alternatic.ch

ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Re: Problem with text when deploying

Post by ChessGredon » Wed May 28, 2014 8:42 pm

The stack is in the archive. Can you tell me what's wrong?
Attachments
Logipoint.rar
(8.6 KiB) Downloaded 294 times

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Problem with text when deploying

Post by Simon » Wed May 28, 2014 10:37 pm

Hi ChessGredon,
Yes, there is a problem in the standalone you can report it here:
http://quality.runrev.com/
A workaround for now is just setting a font instead of the default system font, Arial still looks good as cross platform (there is also Times New roman, Trebuchet MS, Verdana and a few others).
Also taking the italic off works with the default font.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply