Skip to content

Font.Metadata 1.2.0

Choose a tag to compare

@DmitryGaravsky DmitryGaravsky released this 29 Nov 18:30
08de80b

Font.Metadata 1.2.0 adds asynchronous input, reads publisher metadata from web fonts and lets an audit trace a license finding back to a font face, a shared XML block or a section of a supplied document.

What’s new

  • Asynchronous reading. Use FontMetadataReader.InspectAsync or ReadAsync with a stream, or InspectFileAsync or ReadFileAsync with a path. All four accept a cancellation token. Caller-owned streams stay open, and seekable streams return to their original position.
  • Extended WOFF and WOFF2 metadata. Inspection reads the XML block automatically, including publisher credits, license URLs and localized text. Repeated entries keep their order. WOFF2 collections expose the shared XML once.
  • Combined license evidence. The SPDX adapter and CLI bring together name IDs 13/14, WOFF XML and external LICENSE/NOTICE files. Each document finding retains its source and text range. Supply a scope when a document or section applies to a particular face, family or container. Potential conflicts remain available for review, and the consuming application decides the final license conclusion.

This command attaches an OFL file that applies to the whole web font.

font-metadata inspect Example.woff2 --format json --license-evidence --license-document license container all OFL.txt

For a multi-license distribution, the CycloneDX 1.6 example shows how to bind only the Liberation Fonts section of the PDFBox LICENSE to its bundled face. The README includes a format matrix, a full inspection report and a partial recovery example. CycloneDX example · Capabilities and limits

Upgrading from 1.1.0

The packages target .NET 10 and CLI JSON remains at schema version 1. Allow for additional fields when reading reports. A damaged or over-budget XML block can now make a web font partial. Use Inspect to keep readable face metadata and check the diagnostics. Strict Read can throw, and CLI inspect can return exit code 1. CLI contract and exit codes

Verification

On 29 November 2026, the local Windows candidate at d6592bf passed 1,027 NUnit tests and 47 release-script checks. The installed tool and portable CLI reproduced the documented reports. All 127 BOMs generated by the example passed the CycloneDX 1.6 schema.

Package versions and downloadable assets are listed on Font.Metadata, Font.Metadata.Spdx, Font.Metadata.Tool and GitHub Releases.