# PdfEmbeddedFontFamily

Represents a caller-supplied TrueType font family used by generated PDF text.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfEmbeddedFontFamily.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L18)

**Modifiers**

sealed

Represents a caller-supplied TrueType font family used by generated PDF text.

## Inheritance

- object
- PdfEmbeddedFontFamily

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [A branded invoice with embedded CII](/showcase/pdf-branded-invoice/) Sample
  
  Build a polished invoice from a typed C# model with a logo, rounded tables, payment details, approvals, downloadable PDF, embedded CII XML, and source.
- [A decision-focused weekly PDF brief](/showcase/pdf-weekly-brief/) Sample
  
  Generate a weekly PDF brief in C# with a highlighted decision, progress bullets, risks, and an action table. Download the report and runnable source.

## Usage

Explore 14 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 5

- Property [PdfAFontSubstitution.Families](/api/pdf/officeimo-pdf-pdfafontsubstitution/#property-families)
- Property [PdfCreateOptions.NamedFontFamilies](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-namedfontfamilies)
- Method [PdfEmbeddedFontFamily.FromFiles](/api/pdf/officeimo-pdf-pdfembeddedfontfamily/#method-fromfiles-string-string-string-string-string)
- Method [PdfEmbeddedFontFamily.FromSystem](/api/pdf/officeimo-pdf-pdfembeddedfontfamily/#method-fromsystem-string-string)
- Property [PdfFormFillerOptions.AppearanceFontFamily](/api/pdf/officeimo-pdf-pdfformfilleroptions/#property-appearancefontfamily)

### Accepted by parameters 9

- Method [PdfAFontSubstitution.Supplied](/api/pdf/officeimo-pdf-pdfafontsubstitution/#method-supplied-officeimo-pdf-pdfembeddedfontfamily) parameter `families`
- Method [PdfCreateOptions.RegisterFontFamily](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-registerfontfamily-officeimo-pdf-pdfstandardfont-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Method [PdfCreateOptions.RegisterNamedFontFamily](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-registernamedfontfamily-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Method [PdfCreateOptions.UseFontFamily](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-usefontfamily-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Constructor [PdfEmbeddedFontFallbackCandidate.PdfEmbeddedFontFallbackCandidate](/api/pdf/officeimo-pdf-pdfembeddedfontfallbackcandidate/#constructor-ctor-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Method [PdfEmbeddedFontFamily.TryFromSystem](/api/pdf/officeimo-pdf-pdfembeddedfontfamily/#method-tryfromsystem-string-officeimo-pdf-pdfembeddedfontfamily-string) parameter `fontFamily`
- Method [PdfFormFillerOptions.UseAppearanceFontFamily](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefontfamily-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Method [PdfPageBuilder.UseFontFamily](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-usefontfamily-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`
- Method [PdfTextStyleBuilder.FontFamily](/api/pdf/officeimo-pdf-pdftextstylebuilder/#method-fontfamily-officeimo-pdf-pdfembeddedfontfamily) parameter `fontFamily`

Filter members 

Show inherited

## Constructors

`public PdfEmbeddedFontFamily(string familyName, byte[] regular, byte[]? bold = null, byte[]? italic = null, byte[]? boldItalic = null)` [#](#constructor-ctor-string-byte-byte-byte-byte)

[PdfEmbeddedFontFamily.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L18)

Creates a reusable TrueType font family from font file bytes.

Parameters

**familyName string required**

Family name used for generated PDF font resource names.

**regular byte[] required**

Regular TrueType face bytes.

**bold byte[]? = null optional**

Optional bold TrueType face bytes. When null, the selected regular face is emboldened while painting.

**italic byte[]? = null optional**

Optional italic TrueType face bytes. When null, generated italic text uses a slanted regular face.

**boldItalic byte[]? = null optional**

Optional bold-italic TrueType face bytes. When null, generated text uses the best supplied face and simulates the missing slant when needed.

## Methods

`public static PdfEmbeddedFontFamily FromFiles(string familyName, string regularPath, string? boldPath = null, string? italicPath = null, string? boldItalicPath = null)` [#](#method-fromfiles-string-string-string-string-string)

[PdfEmbeddedFontFamily.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L177)

Creates a reusable TrueType font family from font files on disk.

Parameters

**familyName string required**

**regularPath string required**

**boldPath string? = null optional**

**italicPath string? = null optional**

**boldItalicPath string? = null optional**

Returns

`PdfEmbeddedFontFamily`

`public static PdfEmbeddedFontFamily FromSystem(string familyName, string? pdfFamilyName = null)` [#](#method-fromsystem-string-string)

[PdfEmbeddedFontFamily.System.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.System.cs#L24)

Loads an installed TrueType font family from common operating-system font folders.

Parameters

**familyName string required**

Installed family name, for example Arial, Segoe UI, or DejaVu Sans.

**pdfFamilyName string? = null optional**

Optional family name to expose in generated PDF font resource names.

Returns

`PdfEmbeddedFontFamily` A reusable embedded font family backed by the discovered TrueType faces.

Exceptions

- `FileNotFoundException` – No embeddable TrueType regular face was found for familyName.

`public static bool TryFromSystem(string familyName, out PdfEmbeddedFontFamily? fontFamily, string? pdfFamilyName = null)` [#](#method-tryfromsystem-string-officeimo-pdf-pdfembeddedfontfamily-string)

[PdfEmbeddedFontFamily.System.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.System.cs#L41)

Attempts to load an installed TrueType font family from common operating-system font folders.

Parameters

**familyName string required**

Installed family name, for example Arial, Segoe UI, or DejaVu Sans.

**fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily? required**

When found, receives a reusable embedded font family backed by discovered TrueType faces.

**pdfFamilyName string? = null optional**

Optional family name to expose in generated PDF font resource names.

Returns

`bool` true when an embeddable regular TrueType face was found; otherwise false.

## 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)

[PdfEmbeddedFontFamily.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L70)

Family name used for generated PDF font resource names.

`public byte[] Regular { get; }` [#](#property-regular)

[PdfEmbeddedFontFamily.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L89)

Regular TrueType face bytes.

`public byte[]? Bold { get; }` [#](#property-bold)

[PdfEmbeddedFontFamily.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L92)

Optional bold TrueType face bytes.

`public byte[]? Italic { get; }` [#](#property-italic)

[PdfEmbeddedFontFamily.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L95)

Optional italic TrueType face bytes.

`public byte[]? BoldItalic { get; }` [#](#property-bolditalic)

[PdfEmbeddedFontFamily.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfEmbeddedFontFamily.cs#L98)

Optional bold-italic TrueType face bytes.

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