Font.Metadata 1.3.0

dotnet add package Font.Metadata --version 1.3.0
                    
NuGet\Install-Package Font.Metadata -Version 1.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Font.Metadata" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Font.Metadata" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Font.Metadata" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Font.Metadata --version 1.3.0
                    
#r "nuget: Font.Metadata, 1.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Font.Metadata@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Font.Metadata&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Font.Metadata&version=1.3.0
                    
Install as a Cake Tool

Font.Metadata

Build and test (main) License .NET 10.0

Font.Metadata on NuGet Font.Metadata.Spdx on NuGet Font.Metadata.Tool on NuGet

Font.Metadata 1.3.0 reads font metadata and collects license evidence for catalogs, attribution reviews and software inventories. The .NET 10 library and CLI work offline after installation and inspect font bytes directly, without installing the font or loading a rendering engine.

Try it in a few minutes

Use the .NET 10 SDK and a NuGet source that carries version 1.3.0. For a checkout, use the source-build recipe.

dotnet tool install --global Font.Metadata.Tool --version 1.3.0
font-metadata inspect LiberationSans-Regular.ttf --format json --include-name-records --include-table-inventory --include-variation-axes --include-unicode-coverage --license-evidence

The full 1.3.0 Inspect JSON is from the Liberation Sans Regular face distributed in Apache PDFBox 3.0.3. The font SHA-256 is 76d04c18ea243f426b7de1f3ad208e927008f961dc5945e5aad352d0dfde8ee8. The reproduction recipe pins the archive, extracts the exact member and checks both hashes.

The report has status complete, one face, font version 2.1.5, 2,620 declared glyphs and 2,048 design units per em. It includes a 19-entry directory, Unicode coverage from a format 4 subtable and a missing variation-axis section. Embedded Name ID 13 records support OFL-1.1 hints, with the original record indexes in the report.

Partial recovery

From the repository root, run the same tool against the supplied EOT fixture.

font-metadata inspect docs/examples/Recovery.eot --include-name-records --analyze-licenses --format json

The command exits 1 and emits a complete JSON document with source status partial and FM_INVALID_DIRECTORY on face 0. The full recovery report uses the basename Recovery.eot from the fixture directory.

Source Section status Recovered family Raw embedding flags
EOT header Header complete Header family 0x0002
Main face 0 name and OS/2 both notRead Unavailable Unavailable
EUDC face 1 name and OS/2 both complete Example 0x0000

Container support

Family Depth of inspection
SFNT (.ttf, .otf) One face for supported TrueType/OpenType flavors. Reads the supported tables directly from checked ranges.
TTC/OTC (.ttc, .otc) Versions 1 and 2. Preserves original face indexes, reuses shared metadata tables and recovers independent faces.
WOFF (.woff) One face. Reads raw and zlib-compressed metadata tables independently, plus extended XML when present.
WOFF2 (.woff2) Single fonts and collections. Streams and checks Brotli, retains selected metadata tables, and reads one extended XML block per container. Accounts for known table transforms in the directory.
EOT (.eot) Versions 0x00010000, 0x00020001 and 0x00020002. Reports the outer header separately and inspects main and EUDC SFNT/CTF payloads at indexes 0 and 1. Handles raw, XOR and MTX with LZCOMP and optional RLE.

Recognition starts at the supplied byte origin. The same face metadata applies wherever a supported table can be read. See format details and recovery boundaries.

In the 1.3.0 API, FontMetadataReader.Probe checks a caller-selected span without managed allocations, and ProbeStream checks the current position of a seekable stream. Both return the inspection length for a candidate and preserve available header facts on rejection. To select a specific container signature, use ProbeAs or ProbeStreamAs and set FontReadOptions.ExpectedFormat for inspection. Probing a candidate

Where each field comes from

Table or source Reported fields
name Preferred family and subfamily, full and PostScript names, version, attribution, description, URLs and declared license strings. Decoded source records preserve IDs, language, indexes and duplicates. JSON adds all decoded records with --include-name-records.
OS/2 Vendor ID and raw fsType embedding flags from versions 0–5.
head Raw 16.16 revision, creation and modification timestamps, units per em, flags and macStyle.
maxp Declared glyph count from version 0.5 or 1.0.
fvar Design-axis tag, index, minimum, default, maximum, flags and name ID. The CLI reads declared axes by default. Use --include-variation-axes for a section on every reported face.
cmap Inclusive Unicode scalar ranges mapped to nonzero glyph IDs, from one supported format 12 or 4 subtable. Use --include-unicode-coverage.
Table directory The library reports Face.DirectoryStatus for every returned face. The optional inventory adds tags, lengths and compression or transform details in directory order. Use --include-table-inventory in the CLI.
WOFF/WOFF2 extended XML Unique ID, vendor, credits, description, license, copyright, trademark and licensee. Verified decompressed bytes are included as Base64 in JSON.
EOT header Container version, flags, family/style/full name, text version, embedding flags and EUDC descriptors independently of face metadata.

The library exposes the optional axis, coverage and directory reads through FontReadOptions. Use Inspect to retain recovered facts and check each section alongside the overall status. A verified absence is Missing; an unreadable directory can leave a section NotRead. Use Read when the application requires complete supported metadata. Both families share the parser. Async file and stream entry points await input and then use the same buffered parser. API · Statuses and diagnostics

License evidence and CycloneDX

  • Face name records. Name IDs 13 and 14 preserve the supplied license text and URL. FontLicenseAnalyzer finds hints with rule IDs and source records. The SPDX adapter also attempts expressions in eligible descriptions, preserving syntax and validation results.
  • WOFF/WOFF2 XML. The combined report records container-level license identifiers, URLs and localized text with locators into the XML fields.
  • External LICENSE and NOTICE. Supply UTF-8 documents explicitly. The combined report retains the SHA-256 of admitted source bytes, exact finding text and zero-based UTF-16 ranges. Bind a whole document or section to a container, face or family, or leave the relationship unknown. inspect-license analyzes standalone documents independently.
font-metadata inspect Example.woff2 --format json --license-evidence --license-document license container all OFL.txt

The combined report flags potential conflicts between disjoint known SPDX choices when their evidence describes the same subject. For example, an OFL-1.1 hint and a supplied MIT declaration can conflict when both apply to the same face. The report preserves the claims, their locations and separate source and analysis completeness. The caller reviews applicability, determines license conclusions and interprets embedding flags according to its policy. Conflict example · Evidence rules and scope

The CycloneDX 1.6 example uses the same PDFBox font and its LICENSE and NOTICE to produce a BOM with file hashes, separate face and document components, and traceable evidence. It also shows how to carry partial EOT results into a BOM. The example places unresolved source claims in properties for review. The application owns BOM generation and conclusions.

Limits and application responsibilities

Default Scope
128 MiB input and 128 MiB total decompression work Per font input. The work budget includes discarded output and failed decoding attempts.
16 MiB metadata table and 64 MiB live controlled decoded buffers Per retained metadata table and per operation, respectively.
256 faces, 4,096 tables per face, 4,096 records per name table Traversal of collections, directories and source records.
1,000× expansion, 64 MiB MTX output, 1 MiB extended XML at depth up to 32 Compressed unit, MTX payload and decompressed XML respectively.
16 license documents, 1 MiB each, 4 MiB total Combined license report. Up to 64 bindings per document and 16,384 candidate conflict comparisons per report.

Limits are shared across recovered faces within a container where applicable. Use FontReadOptions.Limits in .NET or --max-input-bytes for the CLI's input cap. Inspect FM_LIMIT_EXCEEDED and its limitReason for the budget that stopped reader work. All reader defaults and accounting · License report budgets

Applications locate and extract embedded fonts, choose and associate external documents, escape untrusted strings for their output context, and set concurrency and input limits. Use OS-level worker limits where a hard deadline or process-memory ceiling is required. Reader cancellation is cooperative. Processing untrusted fonts

Complete covers extraction of the supported metadata. Glyph rendering and shaping, outline reconstruction, full font validation, cryptographic authentication and embedded-font discovery are outside that scope. Coverage measures one Unicode mapping and excludes variation sequences. Axis inspection covers design axes, with named instances and variation programs outside that scope. Format validation boundaries

Packages and requirements

Package 1.3.0 contents and dependencies
Font.Metadata Reader, metadata and diagnostics, and name-based license hints in Fonts.Metadata. No NuGet runtime dependencies.
Font.Metadata.Spdx SPDX, external-document and combined evidence APIs. Declares Font.Metadata version 1.3.0 (NuGet minimum, inclusive) and exactly Spdx.Expressions [1.1.1].
Font.Metadata.Tool font-metadata tool with no separate NuGet dependencies. Bundles the 1.3.0 reader and adapter, Spdx.Expressions 1.1.1 and its notices. Accepts file paths and binary stdin, with plain or JSON reports.

All three packages target net10.0. Use a stable .NET 10 SDK to build or install the tool. The tool and the portable CLI run with the .NET 10 runtime on Windows, Linux and macOS. Add the reader with dotnet add package Font.Metadata --version 1.3.0 in a .NET 10 project. CLI recipes · Library usage

See GitHub Releases, the package registries above and CI runs for live distribution and verification status.

Compatibility and verification

The 1.x library compatibility contract starts at 1.0.0 for supported .NET 10 callers. CLI consumers should check schemaVersion: 1, use stable fields and diagnostic codes, and tolerate additional optional fields. API compatibility · CLI reference · Inspect JSON Schema

Run pwsh -File eng/verify.ps1 -Version 1.3.0 for the full local pipeline. It builds, runs tests and checks package consumers and the portable CLI. See testing and dated validation results, architecture, CI, release preparation and contributing.

Font.Metadata is a personal project by Dmitry Garavsky. All three packages use the MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Font.Metadata:

Package Downloads
Font.Metadata.Spdx

Source-preserving SPDX analysis of decoded font license records and external license documents.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 78 12/2/2026
1.2.0 118 11/29/2026
1.1.0 117 11/26/2026
1.0.0 169 11/21/2026
0.1.0-preview.1 85 11/18/2026