Ev werger bi alîkariya AI hatiye amadekirin û divê axêverekî zikmakî lê binêre.
Font pipeline
Ev naverok hêj bi zimanê te tune.
The fonts are built by scripts/deq-fonts, a private Python tool that uses fontTools (ADR 0010, ADR 0016). How to use the fonts is in the fonts guide and the font reference.
From shapes to fonts
spec/ → core (built) → deq-icons font-data → fonts/build/geometry.json ─┐ → deq-generator font-data → fonts/build/leet.json ──┤fonts/codepoints.json, fonts/leet-codepoints.json ───────────────────────┤ └→ deq-fonts build → fonts/dist/pnpm --filter @0xdolan/deq-icons font-data fonts/build/geometry.jsonwrites the expanded geometry of every shape, taken from core.pnpm --filter @0xdolan/deq-generator font-data fonts/build/leet.jsonwrites the Leet glyphs.uv run deq-fonts codepoints --checkfails when a shape or Leet character has no code point.uv run deq-fonts codepointsassigns the missing ones.uv run deq-fonts buildturns the strokes and dots into outlines and writes the fonts.
just fonts runs all four steps. The files in fonts/build/ and fonts/dist/ are gitignored.
What is built
File in fonts/dist/ |
What it is |
|---|---|
DeqIcons-Regular.{otf,ttf,woff2} |
The static icon font, with a ligature for every shape name |
DeqIcons[DOTS,wght].{ttf,woff2} |
The variable icon font: stroke weight and dot size axes |
DeqIconsColor-Regular.{ttf,woff2} |
The COLRv1 colour font with Light, Dark and Monochrome palettes |
DeqLeet-Regular.{otf,ttf,woff2} |
The monospaced Deq Leet font with locl, ss01–ss03 and salt |
deq-icons.css, deq-leet.css |
@font-face rules and classes for the web |
codepoints.json, leet-codepoints.json |
Copies of the code point tables |
Rules
- Code points are permanent. Icons use U+E000–U+EFFF and Leet glyphs start at U+F000. Never change or reuse one, even for a removed shape. Commit
fonts/codepoints.json,fonts/leet-codepoints.jsonand their tables indocs/fonts/with the change that adds them. - Outlines keep the same structure at every stroke width and dot size, because the variable font interpolates point by point. A new primitive kind needs an outline in
outline.pyand tests. - fontbakery must report no FAIL. The accepted warnings are listed in ADR 0010 and ADR 0016; anything new needs a fix or a note in the ADR.
- The licence is GPL-3.0-or-later with the Font Exception (
fonts/LICENSE.md), and the name table says so.
Checks
just fonts-check # fontbakery with ots on each file, then a fontconfig install checkuv run pytest scripts/deq-fonts/testsThe fonts CI job runs the same steps. Releases attach the built fonts as deq-fonts-<version>.zip; see releasing. The website copies the web fonts into /fonts/ at build time.
Guhertoyeke nû ya vê malperê heye.