aboutsummaryrefslogtreecommitdiff
path: root/src/fontengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontengine.h')
-rw-r--r--src/fontengine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontengine.h b/src/fontengine.h
index 9edde05f8..9f7266775 100644
--- a/src/fontengine.h
+++ b/src/fontengine.h
@@ -59,7 +59,7 @@ public:
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 */