From 9fcd1161c51e757c431ea6c10a919c62e8c3be49 Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Fri, 15 May 2026 15:33:18 -0700 Subject: [PATCH] docs: note Unicode property escape requirement next to Intl.Segmenter caveat --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce0a816d..cd95cbd7 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ Pretext doesn't try to be a full font rendering engine (yet?). It currently targ - Tabs follow the default browser-style `tab-size: 8` - `{ wordBreak: 'keep-all' }` is supported too. It behaves like you'd expect for CJK/Hangul and no-space mixed Latin/numeric/CJK text, while keeping the same `overflow-wrap: break-word` fallback for overlong runs. - `system-ui` is unsafe for `layout()` accuracy on macOS. Use a named font. -- Runtime requires `Intl.Segmenter` and Canvas 2D text measurement. Browsers or runtimes without `Intl.Segmenter` are currently unsupported. +- Runtime requires `Intl.Segmenter`, Canvas 2D text measurement, and ES2018 Unicode property escapes (`\p{...}`). Browsers or runtimes without `Intl.Segmenter` are currently unsupported; older runtimes without `\p{...}` support fail earlier at module-load time with a `SyntaxError`. - CSS text features outside the canvas `font` shorthand, such as `font-optical-sizing`, `font-feature-settings`, and standalone `font-variation-settings`, are not modeled separately. Variable-font axes only help when the active axis is reflected in the canvas font string, for example via weight. ## Develop