summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-07-29 12:18:10 -0400
committerpommicket <pommicket@gmail.com>2022-07-29 12:18:10 -0400
commit8b970f5b47ac14d6e55b0caf5cfe7890ca17d23b (patch)
treed9031142955670a84492448ca88108fac061626c /ted.c
parentd424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (diff)
fix syntax highlighting and spacing for weird characters
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);
}