Font License Compliance
1. Whitelist and Determination
Only three license types are allowed for commercial delivery (see font_db.json#licensePolicy.commercialWhitelist):
| License ID | Name | Commercial Use | Obligations |
|---|---|---|---|
ofl-1.1 | SIL OFL 1.1 | ✅ | No standalone resale of font files; must rename after modification; retain license and copyright notices |
apache-2.0 | Apache-2.0 | ✅ | Retain copyright notice and license text (NOTICE) |
vendor-free-commercial | Vendor Free Commercial License (e.g., Alimama, PuHuiTi) | ✅ | Must include license proof link during registration; review terms before closed-source distribution |
Unregistered license = Non-compliant (fail-closed). Determination is not based on intuition: subtitleread.fonts only returns candidates within the whitelist, and fence G-SUB5 enforces an additional check at delivery.
2. Four Practical Rules for OFL-1.1
- Rendering text in videos, covers, and stickers → No restriction (the output work is not font redistribution);
- Font files must not be sold standalone: Fonts can only be distributed with a workstation/product, not sold as a font product;
- Subsetting = Modification: After subsetting, the font must be renamed and its source attributed. Therefore, this skill defaults to not subsetting, using original font files directly—eliminating the need for renaming and redistribution obligations, and keeping sha256 verification meaningful;
- Redistribution must include notices:
kit/install-fonts.shwill placeLICENSES.mdinto the workstation font directory.
3. Font Files Not in Version Control
- The repository stores only metadata (tags + license + sha256) and pins (upstream URLs + verification results);
- Workstations install fonts after sha256 verification per file from
kit/fonts-pin.json(offline import via--from-diror direct download via--download); - 29 fonts weigh ~128MB: including them in the repository would burden every clone, CI pipeline, and desktop load, and require binary updates for each upgrade.
4. Client-Provided Commercial Fonts (FounderType, Hanyi, Huakang, Minijian, ZaoziGongfang, etc.)
- The client provides the font files and authorization proof (license letter, purchase order, or link to the license page), imported locally on the workstation;
- Register in the metadata: font name / family name / file / sha256 / license (
vendor-free-commercialor client-specific license type) / proof link; - Unregistered fonts do not enter selection candidates; "use it now, provide authorization later" is not accepted;
- Client assets and font files are not uploaded; only metadata and license proof are retained in the workspace.
5. Evidence Tracking and Review
The delivery report must answer four questions (subtitle_report):
- Which fonts were used in this video (name + id + sha256)?
- What is the license for each, where does it come from, and where is the proof?
- Were any font files modified (the answer must be no—this skill does not subset/rename)?
- Has the brand visual anchor (account-locked font) changed this time (if so, it must go through G-SUB1 human review)?
If these questions cannot be answered, the video cannot enter the release queue as a commercial delivery.
6. Process Criteria (License Type → Obligation → Determination → Source)
| Criterion | Obligation/Restriction | Determination | Source |
|---|---|---|---|
ofl-1.1 (SIL OFL) | No standalone resale of font files; must rename after modification; retain license and copyright notices | Text rendering in videos unrestricted; no subsetting (subsetting = modification) | KB: This suite §2 + font_db.json#licensePolicy |
apache-2.0 | Retain copyright notice and license text (NOTICE) | Commercial use allowed; distribute license text with package | KB: Same as above |
vendor-free-commercial | Must register license proof link; review terms before closed-source distribution | Commercial use allowed; missing link means no entry into the database | KB: Same as above |
| Unregistered license | — | fail-closed rejection, not in candidates | KB: Fence G-SUB5 |
| Client-provided commercial fonts | Client provides file + authorization proof (license letter/purchase order/license page) | Import locally and register; no acceptance of "use now, provide later" | KB: This suite §4 |
| Font files into repository | — | Repository stores only metadata and sha256 pins; font files are not in version control | KB: This suite §3 |
| Brand visual anchor change | — | Requires G-SUB1 human review before being set as default | KB: Fence G-SUB1 |
7. Failure Modes (Symptom → Detector → Action)
| Symptom | Detector | Action |
|---|---|---|
| Unregistered license font appears in candidates | subtitleread.fonts whitelist filter + G-SUB5 | Remove the candidate and log; no "deliver first, provide license later" |
| Font file committed into version control | Asset scan (workstation font directory vs. repository) | Revert the commit; use fonts-pin.json pins + sha256 verification for installation |
| Subsetting without renaming/attribution | Compare font file hash with metadata | Restore the original font file (this skill defaults to no subsetting) |
| Client says "have authorization" but cannot provide proof | Proof link/file verification | Hold delivery; do not enter release queue until proof is provided |
| Brand visual anchor temporarily replaced | Compare account-locked font + G-SUB1 approval records | Block and revert to the locked font |
| Font resolution falls back to system fonts | fontselect logs (absolute path = fallback) | Mark as failure and retain evidence; re-render after fixing the font directory |