Archive: Issue with SetFont on Japanes systems


Issue with SetFont on Japanes systems
  I've got this line in my script


SetFont "Arial" 20 

>
to set the font of my installer. Which works great on english systems. On a Japanese system the default font is used. Yes, Arial is on the Japanese system. Any thoughts on this?

Did you add it after loading the Japanese language file? Does Arial support Japanese charecters anyway?


Yes I added it after loading the Japanese language file. I don't think Arial supports Japanese characters but I have tried other fonts that do support Japanaes characters and had the same problem.


Are you sure you have used the a right font? The Japanese language file includes a default font.


It's because there is a custom font for Japanese in the language file. I'll make it use the SetFont settings if set and add a /LANG parameter for SetFont.


Thanks Kichik, will that be in the next devlopment snapshot?


I don't know, maybe this one, maybe after b4. Only time will tell :)

For now you can change the language file. If you want Arial just in this installer you can use !system to change the font in the language file before loading it and !system again to revert after loading it. Create a little batch file to do the job, it shouldn't be too complicated.


Thanks for the help kichik. Now another question,

SetFont seems to resize all the dialogs to conform to the new font size. So if I use:


SetFont "Arial" 20 

>
All the dialogs appear extremely large. Is that correct behavior?

Well, since SetFont sets the font for all languages, yes. 20 is very large and the dialog must fit for it. The dialog units relay on the font size so that's why the dialog looks bigger.


Done. With /LANG it only sets to the specific lang specified, without it will set for all languages, no matter what's in the language file.