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 /text.h | |
parent | d424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (diff) |
fix syntax highlighting and spacing for weird characters
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ extern float text_font_char_height(Font *font); // Width of the character 'a' of this font in pixels. // This is meant to be only used for monospace fonts. extern float text_font_char_width(Font *font); +// Force text to advance by text_font_char_width(font) pixels per character (actually, per code point). +extern void text_font_set_force_monospace(Font *font, bool force); // Get the dimensions of some text. extern void text_get_size(Font *font, char const *text, float *width, float *height); extern v2 text_get_size_v2(Font *font, char const *text); |