# Cursed font ## What this builds A small type workshop that starts from a shipped, original, permissively licensed outline and applies a documented typographic crime: an i that is too narrow, a comma that is too tall, a pair of letters that look like another letter. The result can be previewed and downloaded as a font file. Exported fonts must parse. Named glyphs must match fixture outlines or metrics. This is not someone else's font, and it is not a piracy tool. Read `spekkr.inputs.json` first. `title` labels the preview. `family_name` is written into the font. `crime` chooses the transform. `lowercase` and `kerning` change the exported set. ## Out of scope - A full professional font editor. - Copying or ripping a commercial typeface. - Network or a marketplace of fonts in the checks. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Export and parse - The export is a valid OpenType or TrueType file, as chosen by the build (one format is enough). A parser reads the family name as `family_name`. - Glyphs A–Z (and a–z if `lowercase` is on) exist. Metrics for a listed set match `fixtures/font-metrics.json` within 1 unit. - The crime `narrow-i` makes the i (and I) advance width the documented fraction of a regular n. Accept when: the file parses, the family name matches, the metrics match, and the narrow-i fraction holds. ### R2. Outlines and preview - For each crime, a glyph listed in `fixtures/font-outlines.json` matches the fixture outline within 0.5 units at a set of sample points, or a hashed path matches the file. - A preview of `The rain in millstead` at 72 px, seed ignored, matches the `preview` golden. - If `kerning` is on, the pair list in the file is present in the font. Accept when: outlines or hashes match, the kern pairs are present when on, and the preview matches the golden. ### R3. Files - One command builds three fonts (one per crime), parses them, checks metrics, and writes the four screenshots. No network. Accept when: the command passes with lowercase on and off. ### R4. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ## Verification Exported fonts parse, the family name is written, and named glyphs match fixture metrics (and outlines or path hashes). A preview screenshot is checked. The starting outlines are original and licensed. No commercial font is ripped. No network. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to export, how the starting outlines are licensed, and how to run the checks.