I have a macro that renders an html table with some CSS. That CSS also has data regarding what font to be used for every table entry the details of which are also loaded in the plugin's CSS resource. So a sample table data looks something like this:
<td style="padding-left:8px !important;font-size:14.7px;white-space:pre;overflow:hidden;width:189.0px; min-width:189.0px; max-width:189.0px" exc-width="189.0" class="vMiddle bold verdana"><pre style="font-size:14.7px;white-space:pre;overflow:hidden;width:189.0px; min-width:189.0px; max-width:189.0px" class="vMiddle bold verdana">Pinyon Script</pre></td>
<td style="padding-left:8px !important;font-size:14.7px;white-space:pre;overflow:hidden;width:452.0px; min-width:452.0px; max-width:452.0px" exc-width="452.0" class="vMiddle underline pinyon_script bold italic"><pre style="font-size:14.7px;white-space:pre;overflow:hidden;width:452.0px; min-width:452.0px; max-width:452.0px" class="vMiddle underline pinyon_script bold italic">The quick brown fox jumps over the lazy dog</pre></td>
The problem is when the above table data is rendered in the confluence PDF export it does not show the font correctly as mentioned in the style attribute. It basically shows one same font all over! The same html when provided to Scroll PDF exporter generates the fonts exactly as expected.
So the question is whether this behavior expected from native confluence export and is there any way to check from within confluence what html the native confluence export "actually used" for the above mentioned td tags.
I believe that you need to follow this documentation and include the font location https://confluence.atlassian.com/conf76/advanced-pdf-export-customizations-1018768533.html#:~:text=By%20default%2C%20Confluence%20provides%20Times,rule%20in%20your%20PDF%20Stylesheet.&text=The%20font%20path%20specified%20in,font%20on%20the%20Confluence%20server.
@Brant Schroeder , thanks for the reply. Yes, I did see that documentation link, however the issue is in the rendered html I am providing a link tag like so:
<link href='https://fonts.googleapis.com/css?family=Alegreya|Amatic+SC|Arial+Black|Bree+Serif|Calibri|Cambria|Century|Comic+Sans+MS|Garamond|Georgia|Impact|Merriweather|Permanent+Marker|Pinyon+Script|Playfair+Display|Roboto|Roboto+Mono|Tahoma|Trebuchet|Ultra|Varela+Round|Verdana' rel='stylesheet'>
It looks like the the native PDF export doesnt respect this link and is unable to use the fonts provided. Can this link be somehow included in the Stylesheet form pertiaining to the native pdf export in the link you provided?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.