Page 1 of 1

Changing Font

Posted: Thu Dec 14, 2006 7:48 am
by Angus
Hi Igor,
Can you please tell me how i can change the font for all siLang components programatically.

Basically my small test program failed miserably when tested in Japan because they do not have the same fonts that i am using. So i must grab the system default and then update all silang and silanglinked components as the software loads. I didn't see a function to do this and wondered if there's a quick way for this to be done.
Thanks in advance, nile.

Posted: Thu Dec 14, 2006 8:27 am
by isiticov
Hi Nile,

You can try to use OnLinkToDispatcher event of TsiLangDicpatcher which is called each time any TsiLang links itself to dispatcher. And using ReplaceStringValue() method you can replace the content of translations for any language. BUT, I would suggest you just to try to switch to using Tahoma as font for all languages. Since it is installed in 99,9% Windows :) and is Unicode font in order to handle complex characters.
Hope this helps.

Posted: Thu Dec 14, 2006 9:55 pm
by Angus
Okay thanks Igor, will try this as its a simple solution. Cheers, nile.