Text resolution in Windows standalone?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Text resolution in Windows standalone?

Post by peter.s » Wed Dec 08, 2010 9:45 am

Hi -

I have just created a "draft" standalone version of my project to test how it looks and works on various computers.

I created my project on a Mac, so I have become accustomed to the look of the graphics, text and so on. Opening the draft standalone on a Windows PC is quite different (to be expected), the biggest difference is the text resolution.

On the PC, the text in my standalone's text fields (locked fields with instructional text), looks jagged. Is there any way to improve the look of the text on a PC?

I'm using Arial because I figured Arial is universal.

Any ideas welcome.

Peter

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Text resolution in Windows standalone?

Post by Dixie » Wed Dec 08, 2010 11:48 am

Hi Peter...

You could change the font depending on what platform you are running on...

Code: Select all

on preOpenCard
   if platform() = "MacOS" then
      repeat with count = 1 to the number of fields of this card
         set the textFont of field count to "lucida Grande"
      end repeat
   else
      repeat with count = 1 to the number of fields of this card
         set the textFont of field count to "Tahoma"
      end repeat
   end if
end preOpenCard
Hope it helps...

Dixie

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Text resolution in Windows standalone?

Post by peter.s » Wed Dec 08, 2010 9:50 pm

Hi Dixie,

Thanks for the suggestion. Are you suggesting that changing the font from Arial (to Tahoma for example) would result in a better rendering of the font?

And - would all Windows systems have Tahoma already installed?

Cheers,


Peter

glpunzi
Posts: 57
Joined: Sun Nov 28, 2010 5:50 pm
Contact:

Re: Text resolution in Windows standalone?

Post by glpunzi » Thu Dec 09, 2010 2:43 pm

Probably I'm writing something crazy, but...

A LiveCode application can hold a font and use internally? Could be a solution to have the same font in all systems.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Text resolution in Windows standalone?

Post by BvG » Thu Dec 09, 2010 3:33 pm

For Peters question:

Check the formatForPrinting property, it should be false. Other then that, maybe a screenshot might be helpful to see what you mean, with windows-generated text next to livecode-generated text of the same font?

glpunzi:

Check the revFontLoad and revFontUnload commands. Note that you need to have the full rights to distribute fonts. If you're not sure about it, then chances are you do not have em, because you'd remember the huge payment that you made for those rights!
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

glpunzi
Posts: 57
Joined: Sun Nov 28, 2010 5:50 pm
Contact:

Re: Text resolution in Windows standalone?

Post by glpunzi » Fri Dec 10, 2010 10:11 am

Interesting....

Exist http://openfontlibrary.org/ fot this type of troubles :D

Post Reply