summaryrefslogtreecommitdiff
path: root/vendor/text.h
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 12:10:40 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commitfaf40df6f31e98eb752fd5e96330221c8f7dbcc7 (patch)
treeab9356732afbbbb18e85f973945249a738863ae7 /vendor/text.h
parent71e534631bf68f33f802d64794340870374b9f69 (diff)
downloadsketchbook-faf40df6f31e98eb752fd5e96330221c8f7dbcc7.tar.gz
sketchbook-faf40df6f31e98eb752fd5e96330221c8f7dbcc7.zip
sketchbook: text in six faces of the Go family, all bundled (f.textIn, host.textSizeIn, sk.Face)
Diffstat (limited to 'vendor/text.h')
-rw-r--r--vendor/text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/text.h b/vendor/text.h
index 9cd445a..9611cb1 100644
--- a/vendor/text.h
+++ b/vendor/text.h
@@ -10,5 +10,11 @@ bool sk_text_draw(SDL_Renderer *, float x, float y, float scale,
height of its line box, in logical units. False if it cannot be laid out. */
bool sk_text_measure(SDL_Renderer *, float scale, const char *utf8, size_t len,
float *width, float *height);
+/* The same in another face of the bundled Go family (`abi.Face`'s order). */
+enum { SK_TEXT_MONO, SK_TEXT_MONO_BOLD, SK_TEXT_MONO_ITALIC, SK_TEXT_SANS, SK_TEXT_SANS_MEDIUM, SK_TEXT_SANS_BOLD, SK_TEXT_FACES };
+bool sk_text_draw_face(SDL_Renderer *, int face, float x, float y, float scale,
+ const char *utf8, size_t len, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+bool sk_text_measure_face(SDL_Renderer *, int face, float scale, const char *utf8, size_t len,
+ float *width, float *height);
void sk_text_begin_frame(SDL_Renderer *);
#endif