Changing Font

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Angus
Posts: 21
Joined: Sun Dec 10, 2006 11:39 pm
Location: New Zealand

Changing Font

Post 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.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
Angus
Posts: 21
Joined: Sun Dec 10, 2006 11:39 pm
Location: New Zealand

Post by Angus »

Okay thanks Igor, will try this as its a simple solution. Cheers, nile.
Post Reply