building cross-platform Windows and Mac
Bob Sneidar
bobsneidar at iotecdigital.com
Wed Jan 7 15:38:57 EST 2015
The way I got around this is I made a PNG of the character I wanted, imported it, named it and then set the imageSource of the first character of the line to my png like so:
set the imageSource of char 1 of line theHilitedLine of me to “bullet.png"
Now I have a bulleting system that will work on all platforms (that recognize PNG anyway).
This method has the added advantage of allowing you to use *ANYTHING* as a bullet or checkmark or whatever.
Bob S
> On Jan 5, 2015, at 14:59 , Paul Dupuis <paul at researchware.com> wrote:
>
> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list