LibSharedMedia-3.0

15 - Custom fonts on Russian locale

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.

User When Change
WonderfulHorrors Oct 23, 2014 at 20:02 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of usucapral usucapral Jan 24, 2015 at 11:01 UTC - 0 likes

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

    Can we have this fixed?

  • Avatar of WonderfulHorrors WonderfulHorrors Oct 23, 2014 at 20:47 UTC - 0 likes

    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)

    Last edited Oct 23, 2014 by WonderfulHorrors
  • 3 comments

Facts

Last updated
Oct 23, 2014
Reported
Oct 23, 2014
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees