summaryrefslogtreecommitdiff
path: root/docs/text.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/text.md')
-rw-r--r--docs/text.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/text.md b/docs/text.md
index a4f2856..6ee3c96 100644
--- a/docs/text.md
+++ b/docs/text.md
@@ -14,6 +14,7 @@ Cairo, glib and fontconfig leave the build.
| `f.textScaled(face, x, y, scale, raster, ...)` | draw | laid out at `raster`, drawn at `scale`, unsnapped |
| `f.paragraph(x, y, bytes, .{...})` | draw | draws a paragraph and returns its `Layout` |
| `sk.text.layout(bytes, .{...})` | anywhere | the same paragraph's `Layout`, nothing drawn |
+| `sk.text.places(bytes, .{...}, out)` | anywhere | `layout`, and each byte's place (where a caret before it sits) in `out` |
| `sk.text.size(face, scale, bytes)` | anywhere | width and height, `layout` with no width |
| `sk.text.font(bytes)` | anywhere | a sketch's own face from TTF/OTF bytes, a `Face` beyond the ten |
| `host.textSize`, `host.textSizeIn` | draw | kept: `sk.text.size` for one line |