# HtmlPortableBrowserFontProfile

Reusable portable browser-font profile for OfficeIMO HTML, image, and PDF rendering.

Class 

`OfficeIMO.Html.Pdf`

**Namespace**

`OfficeIMO.Html.Pdf`

**Assembly**

`OfficeIMO.Html.Pdf`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[HtmlPortableBrowserFontProfile.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L58)

**Modifiers**

sealed

Reusable portable browser-font profile for OfficeIMO HTML, image, and PDF rendering. Hosts supply the pinned font bytes; this type owns the family aliases, fallback order, PDF embedding, and render-option activation.

## Inheritance

- object
- HtmlPortableBrowserFontProfile

## 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 [HtmlPortableBrowserFontProfile.Create](/api/html-pdf/officeimo-html-pdf-htmlportablebrowserfontprofile/#method-create-string-func-system-string-system-byte)

Filter members 

Show inherited

## Methods

`public static HtmlPortableBrowserFontProfile Create(string id, Func<string, byte[]> readAsset)` [#](#method-create-string-func-system-string-system-byte)

[HtmlPortableBrowserFontProfile.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L58)

Creates the standard seven-face portable profile from a caller-owned asset reader. The reader must return the exact named font file bytes or throw.

Parameters

**id string required**

**readAsset System.Func<string, byte[]> required**

Returns

`HtmlPortableBrowserFontProfile`

`public OfficeFontFaceCollection CreateDrawingFonts()` [#](#method-createdrawingfonts)

[HtmlPortableBrowserFontProfile.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L100)

Creates an independent drawing-font collection with aliases and ordered fallbacks.

Returns

`OfficeFontFaceCollection`

`public HtmlPdfExportOptions CreateHtmlOptions(IOfficeTextShapingProvider? textShapingProvider = null)` [#](#method-createhtmloptions-officeimo-drawing-iofficetextshapingprovider)

[HtmlPortableBrowserFontProfile.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L124)

Creates HTML rendering options with the same fonts for layout, images, and PDF output.

Parameters

**textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null optional**

Returns

`HtmlPdfExportOptions`

`public PdfCreateOptions CreatePdfOptions(IOfficeTextShapingProvider? textShapingProvider = null)` [#](#method-createpdfoptions-officeimo-drawing-iofficetextshapingprovider)

[HtmlPortableBrowserFontProfile.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L104)

Creates deterministic PDF writer options with embedded fonts and explicit substitutions.

Parameters

**textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null optional**

Returns

`PdfCreateOptions`

## 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 Id { get; }` [#](#property-id)

[HtmlPortableBrowserFontProfile.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L45)

Stable source package identifier.

`public OfficeFontFallbackPack FontPack { get; }` [#](#property-fontpack)

[HtmlPortableBrowserFontProfile.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L47)

Immutable drawing fallback pack shared by HTML, image, and PDF rendering.

`public string Fingerprint { get; }` [#](#property-fingerprint)

[HtmlPortableBrowserFontProfile.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L49)

Lowercase SHA-256 identity of the activated faces, aliases, and fallback order.

`public IReadOnlyList<PdfFontFamilySubstitution> FontFamilySubstitutions { get; }` [#](#property-fontfamilysubstitutions)

[HtmlPortableBrowserFontProfile.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L51)

Explicit PDF family substitutions carried by the portable profile.

## Fields

`public const string DefaultFontFamily` [#](#field-defaultfontfamily)

[HtmlPortableBrowserFontProfile.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L33)

Default Latin Office document family.

Value: `Carlito`

`public const string JapaneseFallbackFontFamily` [#](#field-japanesefallbackfontfamily)

[HtmlPortableBrowserFontProfile.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L35)

Bounded Japanese fallback family.

Value: `OfficeIMO Japanese Common`

`public const string ArabicFallbackFontFamily` [#](#field-arabicfallbackfontfamily)

[HtmlPortableBrowserFontProfile.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L37)

Arabic fallback family.

Value: `Noto Sans Arabic`

`public const string SymbolFallbackFontFamily` [#](#field-symbolfallbackfontfamily)

[HtmlPortableBrowserFontProfile.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L39)

Symbol fallback family.

Value: `Noto Sans Symbols 2`

`public const string DefaultLayoutFontFamilies` [#](#field-defaultlayoutfontfamilies)

[HtmlPortableBrowserFontProfile.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPortableBrowserFontProfile.cs#L41)

Default CSS family sequence used by the portable profile.

Value: `Carlito, 'OfficeIMO Japanese Common', 'Noto Sans Arabic', 'Noto Sans Symbols 2'`

<!-- PowerForge markdown artifact sha256:9B7B0BDB22BE77AC14D9CFBB47A2D8E25FF0B03EEADF5EED526E72450A854ED7 -->
