Skip to content

Instantly share code, notes, and snippets.

@nanxstats
Created May 24, 2025 23:40
Show Gist options
  • Save nanxstats/ceb2d2cb3cf240c09867e7cad01b10a4 to your computer and use it in GitHub Desktop.
Save nanxstats/ceb2d2cb3cf240c09867e7cad01b10a4 to your computer and use it in GitHub Desktop.
Subset Iosevka font for smaller file size
# <https://fdp.io/blog/2024-10-08-choosing-a-font/>
uv init fontsub
uv add fonttools
uv add brotli
pyftsubset "Iosevka-Extended.woff2" \
--output-file="Iosevka-Extended-subset.woff2" \
--flavor="woff2" \
--layout-features="*" \
--unicodes="U+0020-007F, \
U+00A9, \
U+00AE, \
U+00B7, \
U+2000-206F, \
U+2070-209F, \
U+20A0-20CF, \
U+2100-214F, \
U+217D-217E, \
U+2190-21FF, \
U+2212-22FF, \
U+FB00-FB4F"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment