Current EditBox font is not localization compatible #677


  • Defect
Open
  • twinberrycheesecake created this issue Apr 14, 2025

     

    Text editor/code editor in WeakAuras has always had a problem on Korean client (and English client with Korean) that cursor placement, text selection, and text highlight don't match the actual text.

     

    It uses either MultiLineEditBox or EditBox from AceGUIWidget.

     

     

    While each line for cursor placement, text selection, and text highlight is 16px each, the text lines are 17px each, creating 1px misalignment per line.

     

     

    Currently the default font for MultiLineEditBox/EditBox Widget is ChatFontNormal.

     

    It inherits NumberFont_Shadow_Med FontFamily.

     

    In Korean localization, the font file and height is different, and also there is a spacing attribute.

     

     

     

     

    Before

    After

     

    Changing it into a font without spacing seems to fix the issue. So I presume the spacing is the problem.

     

    This font is the one that Blizzard uses in MacroUI EditBox, which doesn't have this issue. (GameFontHighlightSmall which inherits SystemFont_Shadow_Small)

     

     

     

    Apparently EditBox does not support all fonts.

     

     

  • twinberrycheesecake added a tag Defect Apr 14, 2025

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