mirror of
https://github.com/lexmount/moli.git
synced 2026-11-21 08:02:59 +00:00
Decode and validate binary font data before marking a FontFace loaded, and check SFNT table extents for every face in a collection. Reuse the stronger validation for URL fonts so truncated unused tables cannot escape detection. Reject shared and resizable sources during argument conversion, then copy ordinary BufferSource bytes after descriptor conversion. Retain validated bytes independently of later caller mutations and transfers. Cover real TTF, WOFF and WOFF2 inputs, offset views, malformed and truncated fonts, shared/resizable/detached buffers, descriptor side effects, collections, URL font validation and cross-realm promises and errors.