summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index c5d264b..e98edde 100644
--- a/ted.c
+++ b/ted.c
@@ -83,6 +83,9 @@ static void ted_load_font(Ted *ted, char const *filename, Font **out) {
if (ted_get_file(ted, filename, font_filename, sizeof font_filename)) {
Font *font = text_font_load(font_filename, ted->settings.text_size);
if (font) {
+ // we don't properly handle variable-width fonts
+ text_font_set_force_monospace(font, true);
+
if (*out) {
text_font_free(*out);
}