Skip to contents

Wraps FPDF_SetSystemFontInfo(FPDF_GetDefaultSystemFontInfo()). Tells PDFium to use the platform's default callback table for resolving font requests against installed system fonts. Without this, PDFium falls back to its built-in (static) substitution table only — which is fine for most documents but misses platform-installed typefaces.

Usage

pdf_system_fonts_install_default()

Value

Invisibly returns TRUE if the provider is installed, including by an earlier call, and FALSE if the platform has no default provider (e.g. stripped-down builds).

Details

The provider is installed once per PDFium library lifetime: a repeat call returns TRUE without installing another. The package frees it with FPDF_FreeDefaultSystemFontInfo when it shuts the library down, on package unload.

Custom providers (R-side callbacks for font enumeration) are deferred to a later release — they require marshalling FPDF_SYSFONTINFO's callback table into R closures, which is non-trivial.