Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlPortableBrowserFontProfile

OfficeIMO.Html.Pdf

Namespace
OfficeIMO.Html.Pdf
Assembly
OfficeIMO.Html.Pdf
Source revision
3b680b1b6fb1 with working tree changes
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

Methods

public static HtmlPortableBrowserFontProfile Create(string id, Func<string, byte[]> readAsset) #

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
public OfficeFontFaceCollection CreateDrawingFonts() #

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

Returns

OfficeFontFaceCollection
public HtmlPdfExportOptions CreateHtmlOptions(IOfficeTextShapingProvider? textShapingProvider = null) #

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

Parameters

textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null optional
public PdfCreateOptions CreatePdfOptions(IOfficeTextShapingProvider? textShapingProvider = null) #

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

Parameters

textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null optional

Returns

PdfCreateOptions

Properties

public string Id { get; } #

Stable source package identifier.

public OfficeFontFallbackPack FontPack { get; } #

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

public string Fingerprint { get; } #

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

public IReadOnlyList<PdfFontFamilySubstitution> FontFamilySubstitutions { get; } #

Explicit PDF family substitutions carried by the portable profile.

Fields

public const string DefaultFontFamily #

Default Latin Office document family.

Value: Carlito
public const string JapaneseFallbackFontFamily #

Bounded Japanese fallback family.

Value: OfficeIMO Japanese Common
public const string ArabicFallbackFontFamily #

Arabic fallback family.

Value: Noto Sans Arabic
public const string SymbolFallbackFontFamily #

Symbol fallback family.

Value: Noto Sans Symbols 2
public const string DefaultLayoutFontFamilies #

Default CSS family sequence used by the portable profile.

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