Back to browse
GitHub Repository

Encode arbitrary data into a WOFF2 color font (Brotli-compressed), decode it via canvas rendering at runtime.

0 starsPython

Encode arbitrary data into a WOFF2 color font, decode via canvas

by etherdream·Jun 29, 2026·2 points·0 comments

AI Analysis

●●●BangerWizardryBig Brain

Using WOFF2 fonts as Brotli compression transport is genuinely wild.

Strengths
  • Native browser WOFF2 decompression means only a few hundred bytes of JS glue code.
  • Solves real CDN problem where Brotli support is missing but font loading works.
  • RGB pixel encoding in CBDT tables avoids premultiplied alpha corruption.
Weaknesses
  • Only 1.5% size savings over raw Brotli—may not justify deployment complexity.
  • Firefox and Safari support DecompressionStream now, reducing the use case.
Target Audience

Frontend developers optimizing CDN delivery

Similar To

sql.js-httpvfs

Similar Projects