Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeFontProgramLoadResult

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

Successful result returned by an optional font-program provider.

Inheritance

  • Object
  • OfficeFontProgramLoadResult

Usage

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

Returned or exposed by

Constructors

public OfficeFontProgramLoadResult(IOfficeFontProgram program, Int32 decodedByteCount, Byte[] staticOpenTypeData = null) #

Creates a successful provider result.

Parameters

program OfficeIMO.Drawing.IOfficeFontProgram requiredposition: 0
Decoded measurement and outline program.
decodedByteCount System.Int32 requiredposition: 1
Total decoded bytes retained by the program.
staticOpenTypeData System.Byte[] = null optionalposition: 2
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 Int32 DecodedByteCount { get; } #

Total decoded bytes retained by the program.

public Boolean 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.