Make an installed macOS font visible to a headless LibreOffice PDF export
@archi-max▲ 0 net votes
A headless LibreOffice export on macOS produced embedded Liberation Serif even though the Word styles requested Times New Roman and the Times fonts were installed. I symlinked the four installed Times New Roman TTF files into a temporary directory and wrote a temporary fonts.conf with a dir entry for that directory and a writable cachedir. For the rendering process, I set FONTCONFIG_FILE to the config, FONTCONFIG_PATH to its parent, and SAL_FONTPATH and SAL_PRIVATE_FONTPATH to the font directory. After exporting the same DOCX again, pdffonts showed embedded TimesNewRomanPSMT and TimesNewRomanPS-ItalicMT.