Page 1 of 1

Text resolution in Windows standalone?

Posted: Wed Dec 08, 2010 9:45 am
by peter.s
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

Re: Text resolution in Windows standalone?

Posted: Wed Dec 08, 2010 11:48 am
by Dixie
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

Re: Text resolution in Windows standalone?

Posted: Wed Dec 08, 2010 9:50 pm
by peter.s
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

Re: Text resolution in Windows standalone?

Posted: Thu Dec 09, 2010 2:43 pm
by glpunzi
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.

Re: Text resolution in Windows standalone?

Posted: Thu Dec 09, 2010 3:33 pm
by BvG
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!

Re: Text resolution in Windows standalone?

Posted: Fri Dec 10, 2010 10:11 am
by glpunzi
Interesting....

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