# OfficeFontFace

One caller-supplied font face that can be reused by drawing renderers.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFontFace.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L35)

**Modifiers**

sealed

One caller-supplied font face that can be reused by drawing renderers.

## Inheritance

- object
- OfficeFontFace

## Usage

Explore 2 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

- Property [OfficeFontFaceCollection.Faces](/api/core/officeimo-drawing-officefontfacecollection/#property-faces)

### Accepted by parameters 1

- Method [OfficeFontFaceCollection.TryResolveFaceForText](/api/core/officeimo-drawing-officefontfacecollection/#method-tryresolvefacefortext-string-string-officeimo-drawing-officefontstyle-officeimo-drawing-officefontface) parameter `face`

Filter members 

Show inherited

## 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 string FamilyName { get; }` [#](#property-familyname)

[OfficeFontFace.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L35)

CSS/Office family name used to select the face.

`public string ResourceFamilyName { get; }` [#](#property-resourcefamilyname)

[OfficeFontFace.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L38)

Unique family name used by exporters after unicode-range selection.

`public OfficeFontStyle Style { get; }` [#](#property-style)

[OfficeFontFace.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L41)

Bold and italic face attributes.

`public OfficeFontFaceDescriptor Descriptor { get; }` [#](#property-descriptor)

[OfficeFontFace.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L44)

Numeric weight, stretch, and slant attributes used for CSS-compatible face selection.

`public OfficeFontUnicodeRangeSet UnicodeRanges { get; }` [#](#property-unicoderanges)

[OfficeFontFace.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L47)

Unicode scalars this face is allowed to serve.

`public byte[] Data { get; }` [#](#property-data)

[OfficeFontFace.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L53)

Independent copy of the accepted face bytes. This is normalized sfnt data for built-in TrueType/WOFF 1 faces and provider-selected bytes for other formats.

`public OfficeFontContainerFormat ContainerFormat { get; }` [#](#property-containerformat)

[OfficeFontFace.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L56)

Detected source container format.

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

[OfficeFontFace.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L59)

Whether [OfficeFontFace.Data](/api/core/officeimo-drawing-officefontface/) is a static sfnt program safe for direct PDF embedding.

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

[OfficeFontFace.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontFace.cs#L66)

Decoded measurement, shaping, and outline program for this face. Exporters can use this when direct static-font embedding is unavailable, for example for WOFF 2, CFF2, or an active variable-font instance.

<!-- PowerForge markdown artifact sha256:A36DFC22924B88CD10F6AF50695BF935A2283E793B23AD7116910189CD39416E -->
