building cross-platform Windows and Mac

Paul Dupuis paul at researchware.com
Mon Jan 5 23:59:08 CET 2015


On 1/5/2015 5:53 PM, william humphrey wrote:
> I noticed that √ which is a checkmark on Mac-OS is | a pipe symbol on Windows.
>
> Is there a font I can choose on my design that will work the same on
> Windows and Mac?
>
> I hope I don't have to put a bunch of "check which platform and do
> this or that".  I assumed the font characters were the same and I'm
> kind of surprised.
>
Characters in characters codes below 128 are the same between platforms.
OSX and Windows use the ASCII character codes from 128-255 differently
regardless of Font. So, unless you are using LiveCode 7, if you are
using any character above ASCII 127, you do have to check what platform
you are on. See the isoToMac and macToIso functions in the LiveCode
Dictionary as well.

And yes, it sucks.

Paul Dupuis
Researchware



More information about the use-livecode mailing list