# OfficeFontProgramLoadResult

Successful result returned by an optional font-program provider.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFontPrograms.cs:195](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L195)

**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

- Method [IOfficeFontProgramProvider.TryLoad](/api/core/officeimo-drawing-iofficefontprogramprovider/#method-tryload-officeimo-drawing-officefontprogramloadrequest)

Filter members 

Show inherited

## Constructors

`public OfficeFontProgramLoadResult(IOfficeFontProgram program, int decodedByteCount, byte[]? staticOpenTypeData = null)` [#](#constructor-ctor-officeimo-drawing-iofficefontprogram-int32-byte)

[OfficeFontPrograms.cs:195](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L195)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IOfficeFontProgram Program { get; }` [#](#property-program)

[OfficeFontPrograms.cs:206](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L206)

Decoded measurement and outline program.

`public int DecodedByteCount { get; }` [#](#property-decodedbytecount)

[OfficeFontPrograms.cs:209](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L209)

Total decoded bytes retained by the program.

`public bool CanEmbedAsStaticPdfFont { get; }` [#](#property-canembedasstaticpdffont)

[OfficeFontPrograms.cs:212](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L212)

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

`public byte[]? StaticOpenTypeData { get; }` [#](#property-staticopentypedata)

[OfficeFontPrograms.cs:216](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L216)

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

<!-- PowerForge markdown artifact sha256:8632D5DB5F5AD1E553B8E05E0A5668968740FE4B1ACE16AD2CE62B31646FACA0 -->
