Skip to content
⌘ NSIS Forum Archive

Installers are scaled differently based on language

3 posts

mariusnegrutiu#

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:

!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
Anders#
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