[Gambas-user] Fonts

Benoit Minisini gambas at ...1...
Fri Dec 5 20:19:29 CET 2003


On Friday 05 December 2003 09:20, Leo Barnhoorn wrote:
> Hallo Benoit,
>
> I have finaly fount the fonts, Ms Linedraw.ttf and dosapp.fon. This fonts
> work OK whitin Gambas.
>
> Question: When i draw them only the range from Ascii code 0 to 128 he
> draws, the range from 129 to 255 is not shown in de drawarea. Is it posible
> that i can make them visible on the drawingarea. This last range from 129
> to 255 is what i need, especially the range from 169 to 223 this are the
> drawing characters from this fonts.
>
> Thanks,
>
> Regards,
> Leo Barnhoorn.
>

Be careful Leo !

Gambas interpreter encodes its strings in UTF-8, not ASCII !
So CHR$(x) when x >= 128 is not a character. You must use the UTF-8 encoding 
instead.

The lazy way is Conv$(MyString, "ISO-8859-1", "UTF-8")

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list