summaryrefslogtreecommitdiff
path: root/text.h
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 /text.h
parentd424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (diff)
fix syntax highlighting and spacing for weird characters
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index cfd70e7..b5e6f5a 100644
--- a/text.h
+++ b/text.h
@@ -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);