diff options
author | pommicket <pommicket@gmail.com> | 2023-07-18 16:09:50 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:02:27 -0400 |
commit | 94a6d21d4c2fe5fc2806cd28ae36a2b0e1928914 (patch) | |
tree | 4f37afc94b9bbac7571ee6a17a1a3a1d5dce0ba0 /main.c | |
parent | be5dab846e38420961a68ff4503a48e2bd8bdf6b (diff) |
new font management system
this lets us avoid reloading the font file from disk
whenever the font size changes
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,6 @@ /* +TODO: +- clean up valgrind_suppresions.txt FUTURE FEATURES: - autodetect indentation (tabs vs spaces) - font setting & support for multiple fonts to cover more characters @@ -1214,8 +1216,7 @@ int main(int argc, char **argv) { buffer_free(&ted->replace_buffer); buffer_free(&ted->build_buffer); buffer_free(&ted->argument_buffer); - text_font_free(ted->font); - text_font_free(ted->font_bold); + ted_free_fonts(ted); config_free(ted); macros_free(ted); free(ted); |