- NSIS Discussion
- Issue with SetFont on Japanes systems
Archive: Issue with SetFont on Japanes systems
rsegal
3rd September 2003 21:57 UTC
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?
Joost Verburg
3rd September 2003 22:25 UTC
Did you add it after loading the Japanese language file? Does Arial support Japanese charecters anyway?
rsegal
3rd September 2003 22:42 UTC
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.
Joost Verburg
4th September 2003 13:14 UTC
Are you sure you have used the a right font? The Japanese language file includes a default font.
kichik
4th September 2003 14:14 UTC
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.
rsegal
4th September 2003 15:08 UTC
Thanks Kichik, will that be in the next devlopment snapshot?
kichik
4th September 2003 15:15 UTC
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.
rsegal
4th September 2003 18:30 UTC
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?
kichik
4th September 2003 18:34 UTC
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.
kichik
6th September 2003 10:49 UTC
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.