shelfio / libreoffice-lambda-layer

MIT License
112 stars 22 forks source link

Is there a way to replace font? #45

Closed botton18 closed 2 years ago

botton18 commented 2 years ago

Hi, I'm wondering if there is a way to customize the way fonts are loaded when a document is converted to a PDF. For example, if the word document contains a font, say, Times New Roman, is there a way to instead pick another font in place of the Times New Roman font so that all the Times New Roman would be replaced with the specified font when the PDF is generated? I understand we can manually package the necessary fonts by creating a new lo.tar file, but was just wondering if we can just fallback to a specified font (not just the default font) in an event where the font from the word document does not exist in the libreoffice font folder. Thanks for the help!