Hi,
I am trying to embed fonts into the native PDF export in confluence at backend and not at the UI. I have gone through
https://confluence.atlassian.com/conf76/advanced-pdf-export-customizations-1018768533.html
above link. And it doesn’t seem to do anything.
Here is the code which I have added to the html and which is being returned to confluence native pdf export -
@font-face { src: url('file:///fonts/alegreya.ttf'); -fs-pdf-font-embed: embed }
@font-face { src: url('file://fonts/alegreya.ttf'); -fs-pdf-font-embed: embed }
@font-face { src: url('/fonts/alegreya.ttf'); -fs-pdf-font-embed: embed }
@font-face { src: url('fonts/alegreya.ttf'); -fs-pdf-font-embed: embed }
@font-face { src: url(file:///Users/saurabh.gupta/workspace/plugin/target/classes/fonts/alegreya.ttf); -fs-pdf-font-embed: embed }
@font-face { src: url(file://Users/saurabh.gupta/workspace/plugin/target/classes/fonts/alegreya.ttf); -fs-pdf-font-embed: embed }
@font-face { src: url(/Users/saurabh.gupta/workspace/plugin/target/classes/fonts/alegreya.ttf); -fs-pdf-font-embed: embed }
@font-face { src: url(Users/saurabh.gupta/workspace/plugin/target/classes/fonts/alegreya.ttf); -fs-pdf-font-embed: embed }
@font-face { src: url(///Users/saurabh.gupta/workspace/plugin/target/classes/fonts/alegreya.ttf); -fs-pdf-font-embed: embed }
The end result is the same 4 confluence fonts getting embedded. And alegreya.ttf is not added to that list.
I am not able to get the same thing working via the UI. Anyone has any examples which I can use.