FontManagerOptions.FontFace Property
The FontFace value of FontManagerOptions.
Owner: FontManagerOptions. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Syntax
FontFace?: { new (family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; prototype: FontFace; } | undefined
Read through the owning object: owner.FontFace. Follow the declared mutability and owning object lifetime.
Examples
Configure FontManagerOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.
function configureFontManagerOptions(FontFace: {
prototype: {
ascentOverride: string;
descentOverride: string;
display: 'auto' | 'block' | 'fallback' | 'optional' | 'swap';
family: string;
featureSettings: string;
lineGapOverride: string;
loaded: Promise<{
ascentOverride: string;
descentOverride: string;
display: 'auto' | 'block' | 'fallback' | 'optional' | 'swap';
family: string;
featureSettings: string;
lineGapOverride: string;
loaded: Promise<{
ascentOverride: unknown;
descentOverride: unknown;
display: unknown;
family: unknown;
featureSettings: unknown;
lineGapOverride: unknown;
loaded: unknown;
status: unknown;
stretch: unknown;
style: unknown;
unicodeRange: unknown;
variationSettings: unknown;
weight: unknown;
load: unknown;
}>;
status: 'error' | 'loading' | 'loaded' | 'unloaded';
stretch: string;
style: string;
unicodeRange: string;
variationSettings: string;
weight: string;
load: unknown;
}>;
status: 'error' | 'loading' | 'loaded' | 'unloaded';
stretch: string;
style: string;
unicodeRange: string;
variationSettings: string;
weight: string;
load: unknown;
};
}) {
const fontManagerSettings = { catalogURL: 'Invoice', FontFace: FontFace };
console.log(fontManagerSettings['FontFace']);
return fontManagerSettings;
}
Remarks
Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.