]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/fontengine.h
Settings tab: don't autoscroll when toggling "Show technical names"
[dragonfireclient.git] / src / fontengine.h
index 9edde05f8f4aee50b31fb72d1bd719bc20ac115f..9f7266775ac944e515f77ee9bd12704966c3ba16 100644 (file)
@@ -59,7 +59,7 @@ class FontEngine
                        unsigned int font_size=FONT_SIZE_UNSPECIFIED,
                        FontMode mode=FM_Unspecified)
        {
-               return getTextWidth(narrow_to_wide(text));
+               return getTextWidth(utf8_to_wide(text));
        }
 
        /** get text width if a text for a specific font */