diff options
Diffstat (limited to 'vendor/text.h')
| -rw-r--r-- | vendor/text.h | 6 |
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 |
