Old 6th September 2017, 08:38   #1
mariusnegrutiu
Junior Member
 
Join Date: Jun 2013
Posts: 3
Installers are scaled differently based on language

I've noticed that the same (multi-language) installer will change its size based on what language the user selects.
Is this intended?

I'm asking because Traditional Chinese, for example, looks kind of weird on normal DPI... Installer looks oversized and blurry...


I've sampled few languages, and here is the installer's dimensions:
  • English 503 x 390
  • French 503 x 390
  • Norwegian 503 x 390
  • Romanian 503 x 390
  • Greek 503 x 390
  • Arabic 503 x 390
  • Korean 668 x 473
  • TradChinese 668 x 473
  • SimpChinese 503 x 362
  • Japanese 585 x 362

Script used for testing:
code:

!include "MUI2.nsh"

Unicode true

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Romanian"
!insertmacro MUI_LANGUAGE "Greek"
!insertmacro MUI_LANGUAGE "SimpChinese"
!insertmacro MUI_LANGUAGE "TradChinese"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro MUI_LANGUAGE "Korean"
!insertmacro MUI_LANGUAGE "Norwegian"
!insertmacro MUI_LANGUAGE "Portuguese"
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "Turkish"
!insertmacro MUI_LANGUAGE "PortugueseBR"
!insertmacro MUI_LANGUAGE "Arabic"
!insertmacro MUI_LANGUAGE "Vietnamese"

Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd

Section -
SectionEnd

mariusnegrutiu is offline   Reply With Quote
Old 6th September 2017, 11:42   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,588
The dialog size depends on the font. The .nlf language file specifies the font for a specific language.

Is this Windows 10? Windows 10 does not have all the Asian fonts installed by default and it might pick a ugly fallback font. See http://forums.winamp.com/showthread....stcount3056602

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th September 2017, 07:44   #3
mariusnegrutiu
Junior Member
 
Join Date: Jun 2013
Posts: 3
Ah.. got it
Thanks for the link. That's exactly my problem as well
mariusnegrutiu is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump