Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlPortableBrowserFontProfile

Namespace OfficeIMO.Html.Pdf
Assembly OfficeIMO.Html.Pdf
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

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Methods

public static HtmlPortableBrowserFontProfile Create(String id, Func<String, Byte[]> readAsset) #
Returns: HtmlPortableBrowserFontProfile

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 System.String requiredposition: 0
readAsset System.Func{System.String,System.Byte[]} requiredposition: 1
public OfficeFontFaceCollection CreateDrawingFonts() #
Returns: OfficeFontFaceCollection

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

public HtmlToPdfOptions CreateHtmlOptions(IOfficeTextShapingProvider textShapingProvider = null) #
Returns: HtmlToPdfOptions

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

Parameters

textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider = null optionalposition: 0
public PdfOptions CreatePdfOptions(IOfficeTextShapingProvider textShapingProvider = null) #
Returns: PdfOptions

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

Parameters

textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider = null optionalposition: 0

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'