Custom fonts on Russian locale #15


  • New
  • Defect
Open
Assigned to elkano
  • _ForgeUser17513716 created this issue Oct 23, 2014

    I just can't get them to work since 6.0.2. They do work if I change the game's language to English. Everything else (i.e. custom textures) works fine though.

  • _ForgeUser17513716 added the tags New Defect Oct 23, 2014
  • _ForgeUser17513716 posted a comment Oct 23, 2014

    I figured out what was wrong: LSM:Register() now requires 4th argument for fonts to work on non-western locales.

    lib.LOCALE_BIT_koKR     = 1
    lib.LOCALE_BIT_ruRU     = 2
    lib.LOCALE_BIT_zhCN     = 4
    lib.LOCALE_BIT_zhTW     = 8
    lib.LOCALE_BIT_western  = 128
    

    If your font contains korean, cyrillic and latin symbols (or more like if you want the font to be available on RU/KR/EN/DE/FR/etc. locales), your 4th argument must be 131 (128 + 2 + 1). (For some reason, it used to work without the 4th argument, I've taken a look at previous versions and nothing has changed in Register() function, weird.)

    An example:
    LSM:Register("font", "qfont", [[Interface\AddOns\nibRealUI\Fonts\qfont.ttf]], 2)


    Edited Oct 23, 2014
  • _ForgeUser7324953 posted a comment Jan 24, 2015

    Indeed, WonderfulHorrors is right (and thanks a lot for the info!).

    Can we have this fixed?


To post a comment, please login or register a new account.