You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf0bae2
Browse filesBrowse the repository at this point in the historyBrowse files
The Font constructor decompresses WOFF (1) fonts itself (fromWOFF moved
from svg.ts to font.ts), so renderText(), TextLayout and SVGOptions.fonts
take them like @font-face in SVGs already did. WOFF2 is refused with a
clear message: it needs Brotli, which Chrome's DecompressionStream
doesn't have yet, and we'd rather wait than bundle a JS decoder with its
122 kB dictionary.
Checked: carbon phyber, Open Sans (TrueType), Source Sans 3 (CFF), Noto
COLRv1 emoji and Noto Naskh Arabic as WOFF (fontTools) render the same
pixels as the originals, also through SVGOptions.fonts and @font-face.
tests/font.js renders the Arabic subset both ways and checks the WOFF2
error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BsU2GAqbnFSNaYDBGD1Km2
0 commit comments