feat(docs): carry the brand fonts inside the ODT #125
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!125
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/udg-embed-brand-fonts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Carries the brand fonts inside generated ODT files, so documents render on-brand on machines without Sora or DM Mono installed. Follows #124.
Scope
tools/doc_build.py—embed_fonts()post-pass: every family an ODT's styles declare is packaged underFonts/and linked fromsvg:font-face-src, with manifest entries and thexlinknamespace.--no-embed-fontsopts out. A family with no file is reported, not fatal.Brand/UDG/fonts/— Sora Regular and Bold, DM Mono Regular (TTF), each with its OFL 1.1 licence text, plus a README. Files are found by<Family without spaces>-*prefix, so adding a weight is adding a file.generator/tests/unit/test_doc_build_fonts.py— new tests.Testing
pytest: 298 passed, including the 7 new font tests;just checkexit 0.tools/wp_theme_ingestor/test_pipeline_invariants.py(contact.php/rituals.phpblocks not in the plugin; copy coverage below its floor) also fail onmainat66f2f7ein a clean worktree without this change — pre-existing and unrelated.Impact Statement
just docgrows by about 87 KB compressed.dist/is unchanged: fonts are embedded per document at build time, not into the 39 reference files.fsType0, and a test holds that line so a restricted font can't be dropped in later.