mritter0 wrote:I am trying to make a LabelClass with Greek letters in the text.
Is this a localised text? Or a specific piece of greek text that must always appear in greek what the locale is? If localised then just pass the lacalised text via the usual GetCatalogString() or macro the font etx should already be set up for that locale, if the latter then it would be a bit more complex.
How do I manage this?
I am writing the source code file on Windows then transferring it to my X5000. What encoding do I save it in? ANSI can't do it.
I'm not sure what character set greek uses, hopefully a greek user will be able to tell you exactly, but guessing by looking in locale prefs I'd say it was ISO-8850-7 (clear languges and scroll down to greek, cancel afterwards to avoid messing up your locale).
If it can be done on my X5000, using English locale, then that would be fine, too. I used Google Translate to copy/paste the text below.
I want it to be able to show on any computer regardless of language. Is that even possible?
The font could be anything, I would prefer to not specify one and use the system font.
You will not be able to use the system font if you want it to show on any machine, you will need to open a font and specify iso-8859-7 as the character set to use. Then it should work fine.
I get random letters when I run it.
Code: Select all
Assuming that font passed is struct TTextAttr how did you allocate / initiliase it? Did you seperately open the font from disk?