OpenHTMLToPDF: Embed a custom font into PDF created out of HTML
问题 I create a PDF from HTML with Jsoup and OpenHTMLToPDF. I have to use a different font in my PDF to have non-latin glyphcs covered (see here). How can I embed my font correctly? Simplified program reproducing the issue: src/main/resources/test.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Font Test</title> <style> @font-face { font-family: 'source-sans'; font-style: normal; font-weight: 400; src: url(fonts/SourceSansPro-Regular.ttf); } </style> </head> <body> <p style=