API Reference
HtmlPortableBrowserFontProfile
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) #HtmlPortableBrowserFontProfileCreates 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
- readAsset System.Func{System.String,System.Byte[]}
public OfficeFontFaceCollection CreateDrawingFonts() #OfficeFontFaceCollectionCreates an independent drawing-font collection with aliases and ordered fallbacks.
public HtmlToPdfOptions CreateHtmlOptions(IOfficeTextShapingProvider textShapingProvider = null) #HtmlToPdfOptionsCreates HTML rendering options with the same fonts for layout, images, and PDF output.
Parameters
- textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider = null
public PdfOptions CreatePdfOptions(IOfficeTextShapingProvider textShapingProvider = null) #PdfOptionsCreates deterministic PDF writer options with embedded fonts and explicit substitutions.
Parameters
- textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider = null
Inherited Methods
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 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'