Load Rml::LoadFontFace from a file using its internal family and style.
filePathPath resolved through the active file interface.
fallbackOptionalUse for missing glyphs in other faces; defaults to false.
weightOptionalAuto (0), or integer 1–1000; defaults to Auto.
faceIndexOptionalNonnegative int32 collection index; defaults to 0.
Native success flag; false for missing/invalid fonts or faces.
Load a file or byte view with explicit family, style and optional weight.
sourceFile path, Buffer or non-shared, non-detached Uint8Array.
familyFamily name to register for RCSS; empty uses font metadata.
styleNormal or Italic.
weightOptionalAuto (0), or integer 1–1000; defaults to Auto.
fallbackOptionalRegister as a fallback face; defaults to false.
faceIndexOptionalNonnegative int32 collection index; defaults to 0.
Native success flag, including false on invalid data/index.
Synchronous Rml::LoadFontFace. The native runtime copies the exact view and keeps it until shutdown, even after a failed load (collections may partially register faces). Callers may modify, transfer or collect their input after return. releaseFontResources preserves these bytes. Initialise first; font operations reject event callbacks. Empty family also restores metadata style.
Forward the checked overload to the native font engine.
Param: source
File path or font bytes.
Param: familyOrFallback
Explicit family or file fallback flag.
Param: styleOrWeight
Named face style or file weight.
Param: weightOrIndex
Named face weight or file collection index.
Param: fallback
Named face fallback flag.
Param: faceIndex
Named face collection index.
Returns
Native loading result.