Skip to content

Releases

Font.Metadata 1.3.0

Choose a tag to compare

@DmitryGaravsky DmitryGaravsky released this 02 Dec 19:21
21003b5

Font.Metadata 1.3.0 adds a lightweight way to check a possible font at a known offset. It also exposes the state of each face’s table directory when inspecting damaged or partially readable fonts.

Probe before inspecting

Use FontMetadataReader.Probe on a span starting at the candidate offset. The warmed span path uses zero managed allocations. The result distinguishes an unrecognized signature, a recognized format that failed a structural check, and a candidate ready for Inspect. Rejections carry a diagnostic code and location when available.

ReadOnlySpan<byte> candidate = buffer.AsSpan(offset);
FontProbeResult probe = FontMetadataReader.Probe(candidate);
if(probe.Status == FontProbeStatus.Candidate) {
    FontInspectionResult inspection = FontMetadataReader.Inspect(candidate.Slice(0, probe.Length));
    Console.WriteLine(inspection.Status);
}

Use Length only for the inspection slice. SFNT can omit final padding, and a TTC/OTC collection can include trailing bytes. When scanning a resource, resume at the next byte after a rejection and compute the resource hash over the original bytes. Probe examples and format rules

For a readable, seekable stream, ProbeStream checks the current position and restores it before returning. If you already know the container format, use ProbeAs or ProbeStreamAs and pass the same ExpectedFormat to Inspect or Read. This handles EOT files whose size field resembles an SFNT signature. Selecting the expected format

Find faces with usable table directories

Read face.DirectoryStatus even when table inventory is disabled. Choose Complete for fully verified declarations or include Partial to keep usable entries from a damaged directory. Other faces report Invalid, NotRead or Unsupported. Individual table statuses tell you whether the table contents could be read. Directory status reference

Upgrading from 1.2.0

The packages target .NET 10. Both public libraries passed API compatibility checks against 1.2.0. An existing compiled client reproduced its output on 49 inputs covering 62 faces. Reflection-based serializers can expose the new face property. CLI JSON retains schema version 1 and its existing optional table inventory.

Verification

On 2 December 2026, the local candidate at 3efff7e passed 1,125 product tests and 47 release-script checks. On the packaged reader, a scanner reproduced all 21 findings across 978 resources, including their offsets. SHA-256 verification covered all three NuGet packages and the portable CLI archive.

Font.Metadata on NuGet · SPDX adapter · CLI tool · GitHub Releases

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.

Font.Metadata 1.1.0

Choose a tag to compare

@DmitryGaravsky DmitryGaravsky released this 26 Nov 17:15
398ae66

Font.Metadata 1.1.0 adds per-face OpenType metadata for SBOM generators and other consumers that need to distinguish fonts with the same family name and version.

  • Read raw head and maxp values by default, including the signed 16.16 font revision, creation and modification timestamps, units per em, flags, style bits, and glyph count. Each section reports its own read status.
  • Set FontReadOptions.IncludeTableInventory or pass --include-table-inventory to inspect each face’s table directory. Entries preserve directory order and expose table tags, lengths, and WOFF2 transform information.
  • Use FontDiagnostic.LimitReason to identify which configured read limit produced FM_LIMIT_EXCEEDED. The CLI includes the same detail.
  • The libraries target .NET 10. Both public packages passed API compatibility checks against 1.0.0. CLI JSON keeps schemaVersion at 1, and the updated schema accepts 1.0.0 reports. The SPDX adapter uses Spdx.Expressions 1.1.1.

NuGet · Font.Metadata · Font.Metadata.Spdx · Font.Metadata.Tool

Portable CLI · Download the ZIP · SHA-256 checksums

Full changelog since 1.0.0

Font.Metadata 1.0.0

Choose a tag to compare

@DmitryGaravsky DmitryGaravsky released this 21 Nov 14:52
47a8f21

Font.Metadata 1.0.0 adds Unicode coverage, variation axes, and license document inspection to the .NET 10 library and CLI.

Font inspection

  • Use font-metadata inspect font.ttf --include-unicode-coverage to list Unicode ranges from supported format 4 and 12 cmap subtables.
  • Ordinary inspection reports axes for declared fvar tables. Add --include-variation-axes to report axis status for every face, including faces in a collection.
  • Coverage and axes report their own status and diagnostics. The CLI keeps JSON schema version 1.

License evidence

  • Use font-metadata inspect-license OFL.txt --format json to inspect a supplied license document. The report retains SPDX declarations, recognized headings, full-text matches, and original text offsets. Fully read files include a SHA-256 digest.
  • The built-in catalog recognizes selected texts for nine license identifiers. Library callers can extend or replace it for an individual analysis.
  • The optional SPDX adapter uses Spdx.Expressions 1.1.0. Examples show how to display registry metadata and resolve document-scoped license references.

Installation

dotnet add package Font.Metadata --version 1.0.0
dotnet add package Font.Metadata.Spdx --version 1.0.0
dotnet tool install --global Font.Metadata.Tool --version 1.0.0

The portable ZIP requires the .NET 10 runtime. Extract it and run dotnet Font.Metadata.Tool.dll --help. The release includes SHA256SUMS for the three NuGet packages and the portable ZIP.

Changes since 0.1.0-preview.1

Font.Metadata 0.1.0-preview.1

Pre-release

Choose a tag to compare

@DmitryGaravsky DmitryGaravsky released this 18 Nov 21:51
5e4fab8

First preview of Font.Metadata for .NET 10. Read font names, attribution and declared license information from TrueType/OpenType fonts, collections, WOFF, WOFF2 and EOT files. The public API may change during preview.

NuGet package What it provides
Font.Metadata A dependency-free reader that retains readable metadata and reports diagnostics for damaged or partially supported fonts.
Font.Metadata.Spdx Optional offline analysis of SPDX declarations in font metadata using Spdx.Expressions 1.0.0.
Font.Metadata.Tool The font-metadata command for inspecting files or stdin, with plain text and versioned JSON output.

Try the preview

dotnet add package Font.Metadata --version 0.1.0-preview.1
dotnet tool install --global Font.Metadata.Tool --version 0.1.0-preview.1
font-metadata inspect Example.woff2 --format json --analyze-spdx

The portable ZIP runs on Windows, Linux and macOS with the .NET 10 runtime. Extract it and run dotnet Font.Metadata.Tool.dll --help. SHA256SUMS lists the checksums for all three packages and the ZIP.

License findings retain their source records. Applications make their own licensing decisions. Unicode coverage analysis and embedded font discovery are outside the scope of this preview. CLI recipes · Supported formats and limits