Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeFontProgramLoadResult

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Successful result returned by an optional font-program provider.

Inheritance

  • object
  • OfficeFontProgramLoadResult

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public OfficeFontProgramLoadResult(IOfficeFontProgram program, int decodedByteCount, byte[]? staticOpenTypeData = null) #

Creates a successful provider result.

Parameters

program OfficeIMO.Drawing.IOfficeFontProgram required
Decoded measurement and outline program.
decodedByteCount int required
Total decoded bytes retained by the program.
staticOpenTypeData byte[]? = null optional
Optional independent sfnt snapshot that is safe to embed as a non-variable PDF font. Leave null when the provider cannot supply a normalized static sfnt snapshot, or for active variable-font instances that must be outlined.

Properties

public IOfficeFontProgram Program { get; } #

Decoded measurement and outline program.

public int DecodedByteCount { get; } #

Total decoded bytes retained by the program.

public bool CanEmbedAsStaticPdfFont { get; } #

Whether the provider supplied a static sfnt program safe for PDF embedding.

public byte[]? StaticOpenTypeData { get; } #

Returns an independent static sfnt snapshot when PDF embedding is safe.