diff options
author | pommicket <pommicket@gmail.com> | 2022-07-29 12:18:10 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-29 12:18:10 -0400 |
commit | 8b970f5b47ac14d6e55b0caf5cfe7890ca17d23b (patch) | |
tree | d9031142955670a84492448ca88108fac061626c /ted.c | |
parent | d424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (diff) |
fix syntax highlighting and spacing for weird characters
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |