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 dd4eecf..355ad90 100644 --- a/vendor/text.h +++ b/vendor/text.h @@ -31,6 +31,12 @@ typedef struct { int sk_text_shape(int face, float px, const char *utf8, size_t len, SkGlyph *out, int max, int32_t *advance, int32_t *ascent, int32_t *height); +/* `sk_text_shape` measured: the run's advance, with `xs` (when not NULL, + `len` of them) the x of each byte from the run's start, a byte inside a + cluster at its cluster's. What `abi.Host.VTable.textRun` serves. */ +int32_t sk_text_run(int face, float px, const char *utf8, size_t len, float *xs, + int32_t *ascent, int32_t *height); + /* `glyph`'s own advance in `face` at `px`, in whole pixels (what the renderer centres font.c's raster in, so the glyph lands on its origin). */ int32_t sk_text_advance(int face, float px, uint32_t glyph); |
