Crossplatform EURO sign?

Andre Garzia andre at andregarzia.com
Thu Jun 11 10:27:56 EDT 2009


Yay for Richmond!
reported working here too... ubuntu jaunty

On Wed, Jun 10, 2009 at 4:09 PM, Richmond Mathewson <
richmondmathewson at gmail.com> wrote:

> Going about things the wrong way!
>
> Try this one:
>
> set the useUnicode to true
>  set the unicodeText of fld "euro" to (NumToChar(8364))
>
> 8364 is the Decimal of Hex 20AC
>
> works on the G4 Mac,
> get (at least) a single character, instead of the 3 generated by the
> previous script
> on Ubuntu 8.04
>
> BLAST!
>
> references:  http://unicode.org/reports/tr8/#Euro%20Sign
>
> font used:  FreeMono.ttf
>
>
> Andre Garzia wrote:
>
>> Richmond,
>>
>> except that you can resize the pngs and jpegs using rev itself and thus
>> had
>> a image that will always look good. Before setting the htmltext, you get
>> the
>> size of the text font being used and then simply resize your euro icon. If
>> you start with a big icon, and reduce it to the current font size, you'll
>> not loose quality and can cope with any font size!
>>
>> resize can happen offscreen and thus be extremely fast for a single icon,
>> just create a copy of the original image offscreen and resize it, use its
>> ID
>> on the htmltext and you're good to go!
>>
>> no one can stop a good hack!
>>
>> Andre
>>
>> On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson <
>> richmondmathewson at gmail.com> wrote:
>>
>>
>>
>>> The only problem I can see with that is if the end-user has the ability
>>> to
>>> resize fonts in the text-field; if the fonts are too big the Euro will
>>> look
>>> small and silly, if the fonts are too small the Euro png will overlap
>>> adjacent chars.
>>>
>>>
>>> Andre Garzia wrote:
>>>
>>>
>>>
>>>> Klaus,
>>>>
>>>> want to do a cheap trick? create a little euro sign png or jpeg and use
>>>> the
>>>> imagesource of char something to put it inside a field, or use the
>>>> htmltext
>>>> with something like <img src="<id of image>" /> and there you'll have
>>>> your
>>>> EURO icon inside a field and no need to fiddle with fonts!
>>>>
>>>> :D
>>>>
>>>>
>>>>
>>>> On Wed, Jun 10, 2009 at 10:15 AM, klaus at major.on-rev.com <
>>>> klaus at major.on-rev.com> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Hi all,
>>>>>
>>>>> any hint on how to handle crossplatform EURO signs?
>>>>> I mean the euro sign is unfortunately NOT translated
>>>>> isotomac/mactoiso, so how do you handle user input of this
>>>>> (and other) character(s) in your crossplatform apps/stacks/databases?
>>>>>
>>>>> Not to mention of ERUO signs in label fields, when you do not
>>>>> want to loop over all fields and place the appropriate signs
>>>>> on "pre-/openstack".
>>>>>
>>>>> Any hints heavily appreciated, inm the meantime we use "EUR" ;-)
>>>>>
>>>>>
>>>>> Best
>>>>>
>>>>> Klaus
>>>>> --
>>>>> Klaus Major
>>>>> http://www.major.on-rev.com
>>>>> klaus at major.on-rev.com
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> use-revolution mailing list
>>>>> use-revolution at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list