Table of Contents

Class FontFaceData

Namespace
NetPdf
Assembly
NetPdf.dll

Raw font-file bytes plus optional metadata. NetPdf parses the bytes to extract metrics, glyph outlines, and OpenType tables. Accepted formats in v1: bare sfnt TTF / OTF. Wrapped WOFF / WOFF2 are currently REJECTED at load (NetPdf.Text.Fonts.FontFace) pending safe decompression wiring (decoder infrastructure exists under NetPdf.Text.Fonts.Woff; see security task SEC-7).

public sealed class FontFaceData
Inheritance
FontFaceData
Inherited Members

Properties

Bytes

public required ReadOnlyMemory<byte> Bytes { get; init; }

Property Value

ReadOnlyMemory<byte>

Family

public string? Family { get; init; }

Property Value

string

PostScriptName

public string? PostScriptName { get; init; }

Property Value

string

Source

public Uri? Source { get; init; }

Property Value

Uri

StretchCss

CSS stretch value (1..9). 5 = normal width; 1 = ultra-condensed; 9 = ultra-expanded. Sourced from OS/2.usWidthClass per the OpenType spec. Null when the resolver did not surface a width — callers should treat null as "normal" (5) for matching purposes per CSS Fonts Level 4 §5.2.3.

public int? StretchCss { get; init; }

Property Value

int?

Style

public FontStyle? Style { get; init; }

Property Value

FontStyle?

WeightCss

public int? WeightCss { get; init; }

Property Value

int?