HtmlPortableBrowserFontProfile
OfficeIMO.Html.Pdf
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
- readAsset System.Func<string, byte[]>
public OfficeFontFaceCollection CreateDrawingFonts() #Creates an independent drawing-font collection with aliases and ordered fallbacks.
Returns
OfficeFontFaceCollectionpublic 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
Returns
HtmlPdfExportOptionspublic PdfCreateOptions CreatePdfOptions(IOfficeTextShapingProvider? textShapingProvider = null) #Creates deterministic PDF writer options with embedded fonts and explicit substitutions.
Parameters
- textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null
Returns
PdfCreateOptionsInherited Methods
Properties
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 JapaneseFallbackFontFamily #Bounded Japanese fallback family.
OfficeIMO Japanese Commonpublic const string DefaultLayoutFontFamilies #Default CSS family sequence used by the portable profile.
Carlito, 'OfficeIMO Japanese Common', 'Noto Sans Arabic', 'Noto Sans Symbols 2'