Releases the underlying PDFium font. Idempotent — a second call is
a no-op. The finalizer attached to the externalptr also runs this
when R garbage-collects the pdfium_font, but explicit close is
useful when many large fonts have been loaded and you want
deterministic release.
Arguments
- font
A
pdfium_fontfrompdf_font_load_standard()orpdf_font_load().
Details
Closing a font does not invalidate text objects that already used it — PDFium keeps an internal reference. Only the embedder's R-side handle is released.
pdf_doc_close() closes the document's fonts as well.