qmetrics.net

Cn Font Split

Rust-powered CJK web font subsetting tool

Cn Font Split screenshot

cn-font-split splits large font files into smaller web-ready packages with consistent output across platforms. It supports TTF, OTF, and WOFF2, including complex and variable fonts, via Node or WASM.

Overview

cn-font-split is the font subsetting tool used by the Chinese Web Fonts Plan to break huge fonts into network-friendly chunks. Splitting follows the characters actually present in the font, with optimizations for Chinese, Japanese, Korean, minority scripts, and Arabic text.

The Rust core runs through Node FFI or WASM, producing WOFF2 chunks, generated CSS, optional reports, test HTML, and preview images. Configurable chunk size, manual subsets, and naming templates control how packages are sized and hashed with blake3 fingerprints.

Platform-specific native binaries ship as optional npm packages for macOS, Windows, and Linux, with separate WASI packages for in-browser use. A CLI and JavaScript API accept font paths or buffers and write artifacts to a chosen output directory.

Node.js 22 or newer is required for current releases. Custom native builds can override the binary path with CNFONTSPLITBIN. Bun and Deno entry points exist as best-effort integrations.

Key features

  • Multi-threaded TTF OTF WOFF2 subsetting
  • CJK and broad script-aware chunking
  • Generated CSS and blake3-named outputs
  • Node FFI and browser WASM paths
  • Variable and complex glyph support
  • Configurable chunk size and subsets
  • Optional preview and reporter artifacts

Use cases

  • Web font package size control
  • Chinese web font CDN workflows
  • Splitting fonts for static sites
  • In-browser font processing via WASM

Tags

Similar software

Excalidraw

Open-source collaborative whiteboard for hand-drawn style diagrams

Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.

★ 136.4k⟳ todayMIT
Open Source Alternative to:Miro

three.js

Cross-browser JavaScript library for 3D graphics

Three.js is a lightweight JavaScript 3D library for browsers. Default builds target WebGL and WebGPU, with optional SVG and CSS3D renderers as add-ons.

★ 119.5k⟳ todayMIT
Design & VisualizationDesktop/CLI app

Archify

Agent skill for interactive HTML diagrams and explainers

Archify is an open-source agent skill that turns descriptions, plans, or repositories into validated, self-contained interactive HTML maps and one-page explainers for Claude Code, Codex, Cursor, OpenCode, and Copilot.

★ 100.9k⟳ 2 days agoApache-2.0

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app

nvm

POSIX shell version manager for Node.js

nvm installs and switches between Node.js versions from the command line on POSIX shells including bash and zsh.

★ 96.3k⟳ 2 days agoMIT
Build & DeploymentDesktop/CLI app

uv

Fast Python package and project manager

uv is a Rust-based tool that manages Python dependencies, virtual environments, scripts, and interpreters. It offers a pip-compatible interface and universal lockfiles for projects.

★ 92.7k⟳ 2 days agoApache-2.0
Build & DeploymentDesktop/CLI app