Repository navigation
Description
Os2Table.cs:14 parses the OS/2 table's fsType field, with the comment:
public uint FsType { get; } // embedding flags (bits 1-3)Nothing in the repository ever reads it. Searching every package for any embedding-permission check
returns nothing. So the library parses a font's licensing bits, exposes them on the type, and then
embeds the font regardless of what they say.
Why it matters
fsType is how a font vendor states whether the font may be embedded at all, and under what terms —
installable, editable, preview-and-print, or restricted. Ignoring it means the library will happily
produce a PDF that violates the font's licence, and the user has no way to find out.
It is also a conformance requirement. PDF/UA-2 §8.4.5.5.1:
Only font programs that are legally embeddable in a file for unlimited, universal rendering shall
be used.
The identical clause appears in the PDF/A-4 font requirements. So v2.12's rule set will need to check
this, and it is better for the writer to refuse than for the validator to report after the fact.
Scope
Check fsType when embedding and refuse by default when the bits forbid it, with an explicit
override for callers who hold a licence the bits do not reflect — that case is real (a foundry
agreement can permit more than the bits say), so the override should exist and should be deliberate
rather than a flag someone sets once and forgets.
The bits are not a simple boolean: bit 1 restricted, bits 2 and 3 preview-print and editable, bit 8
no-subsetting, bit 9 bitmap-only. The no-subsetting bit is directly relevant, since this library
subsets by default.
No new parsing is needed. The data is already there; this is a check and a policy.
Acceptance
- A font with restricted
fsTypeis refused, with a message naming the restriction. - A font with the no-subsetting bit set is either embedded whole or refused — not silently subsetted.
- The override permits embedding and is recorded in the diagnostics.
- An installable-embedding font is unaffected — no behaviour change for the common case.
Relates to
- C6 — the other
OS/2-derived descriptor defect. - v2.12 §8.4.5.5.1 — the clause this satisfies.
Plan labels used above, resolved: C6 #268.
Activity
test: pin text and font output to its ISO clauses (#755)
Tim81 commentedon Nov 29, 2026
The ISO audit (
docs/conformance-v2.4.md) has skipped tests that wait on this issue; the fix removes their skip and makes them pass.Iso14289_1_7_21_4_1_AFontWhoseFsTypeRestrictsEmbeddingIsRefusedUnderAClaim(group G2)