PDF export -font manipulation

Hi everyone,

I need assistance with identifying the characters or character sequences that are mapped to glyphs in LibreOffice. Specifically, I am looking to create a mapping between fonts and characters. I plan to use this mapping later for updating certain elements in the exported PDF.

I have been examining the code in vcl/source/gdi/pdfwriter_impl.cxx and need some guidance on how to proceed. It appears that the current logic registers character glyph IDs on demand. However, I would like to modify this behavior to register fonts and character mappings before writing anything to the PDF.

Could anyone provide advice or point me in the right direction for implementing this change? Any help would be greatly appreciated. Thanks in advance!