Hello,
I have imported two new fonts into confluence. Used the @font-face to call them:
@font-face { src: url(file:///data/confluence/fonts/verdana.TTF); -fs-pdf-font-embed: embed;}
@font-face { src: url(file:///data/confluence/fonts/arial.TTF); -fs-pdf-font-embed: embed;}
but i ended up with error.
Does anyone have idea on this issue.
Hi Jing,
I tried another one and found to be working well.
Attached the font to space and applied:
@font-face { src: url(https://halodev.secude.local:8493/download/attachments/5572785/verdana.ttf);-fs-pdf-font-embed: embed;}
@font-face { src: url(https://halodev.secude.local:8493/download/attachments/5572785/arial.ttf);-fs-pdf-font-embed: embed;}
Thanks,
Sridevi
Hi Sridevi,
Is the location specify in src: url(file:///data/confluence/fonts/arial.TTF); is the correct absolute path to your font?
If you specify a incorrect font location in PDF export sytlesheet, you will encounter the following error.
As I can see the path that you specify in the src: url(file:///data/confluence/fonts/arial.TTF); is not the absolute path to the file. You can identify your file absolute path from Right Click >> Properties >>Location.
Kind Regards,
Jing Hwa
Please see the attachement of my location.
Do correct me if my pat is still wrong. Its is LINUX machine.
thanks
sridevi
Does the user that runs the Confluence have sufficient permission to the fonts folder? Do you mind to move the fonts to another location for example the <confluence-home>/directory?
yes, My rights are...
ok, i will move those to <confluence-home>/directory and verify.
I tried another method. This one, works well. Thanks for your support till now.
Attached the font files to space and applied the following CSS
@font-face {
src: url(https://halodev.secude.local:8493/download/attachments/5572785/verdana.ttf);
-fs-pdf-font-embed: embed;
}
src: url(https://halodev.secude.local:8493/download/attachments/5572785/arial.ttf);
Thanks Sridevi
It looks like you're new here. Sign in or register to get started.