Announcement

Collapse
No announcement yet.

Texts are shown as corrupted once I change the theme to use custom fonts for Russian

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Texts are shown as corrupted once I change the theme to use custom fonts for Russian

    Hi,

    I noticed that once I set the custom font to true but Arial is still used, the installer will not be able to display the text correctly in other non ascii languages, e.g. Russian/Simplified Chinese.

    I displayed the text on the preload event of every page using using like

    tblSysLang = System.GetDefaultLangID();
    tblUserLang = Application.GetInstallLanguage();

    local strCancel = SetupData.GetLocalizedString("RZMSG_CANCEL");
    DlgButton.SetProperties(CTRL_BUTTON_NEXT, {Text = strNext});

    How do I set the font base on different language OS and what are the font that I should use?

  • #2
    Have you also changed the font script properly? If you want to use a custom font for Russian, then not only must you define a font which features the glyphs for that language, but you also must set the font script to Cyrillic.
    Click image for larger version

Name:	SCRN-2014-03-19-02.png
Views:	1
Size:	33.1 KB
ID:	284173

    The same goes for Simplified Chinese, which needs the GB2312 font script. Not every font can display Chinese, Simplified or Traditional.
    Click image for larger version

Name:	SCRN-2014-03-19-01.png
Views:	1
Size:	33.7 KB
ID:	284172

    Some fonts have glyphs for multiple cultures. Before you select a font based on aesthetics, you need to make sure that the script is set properly, and that glyphs actually exist in the selected font for that mapping.

    Ulrich

    Comment


    • #3
      Hi,

      The problem is that I am having a single installer for Eng, Russian and Simplified Chinese.
      When installer is launch, I will detect the OS language and displayed it accordingly. User will only have the option to change the language use the dropdown combobox.
      Base on this scenario, how am I going to change the font dynamically?

      Comment


      • #4
        In that case, you better don't use a custom font at all. Using the standard font will use the default font for dialogs configured in Windows, which should match the required settings.

        Also, there is probably no need at all to offer an option to select the language. If the operating system is Chinese, Setup Factory will select this language for you. Manually selecting Russian on this platform won't work, unless the user also changes the Regional Settings, and has fonts installed which can display text in Cyrillic.

        Ulrich

        Comment

        Working...
        X