Why are the BCM Document Templates to Generate PDFs changing the font of the PDF to Arial or Times New Roman after generating a PDF, but when previewing it shows as Calibri (intended font choice)?

Joseph43
Tera Contributor

When previewing a document template for BCM the document shown displays in Calibri font, as intended. However, when we generate PDF documents from BIAs Plans or Events the system changes the font to either Arial or times new roman.

I have changed all HTML / CSS references within the document template to <font-family: calibri> and removed any mention of times new roman or arial. I have also added the font family calibri to each style entry for getBIAstyles, getPlanStyles, etc.

None of the script includes seem to reference HTML formatting so I cannot figure out why the font continues to change.

Any help would be appreciated.

3 REPLIES 3

Notorious BFG
ServiceNow Employee
ServiceNow Employee
As I recall (and I may be incorrect) the processor used to generate the PDFs has access to open source / typefaces locally within the instance - I’m replying from my phone, but I believe that if you’re able to provide typekit or similar access to the processor within the style sheet you might be able to get it to pick them up as intended. Yes it will display in the preview correctly, but that’s because your client has access to the typeface in question. When the instance goes to generate the doc it likely has to fall back to one of the standard web fonts. You might also be able to drop said typefaces into the attachments table and call them up in the same way we can load up specific libraries for portal widgets etc.

I'm hoping this requirement is dropped, but if not I might reach out for further clarity. As it stands the most expensive part of this engagement is about to be font choices. Bad Economics in my opinion.

Hi Joseph - let me know if you still need this when I get back in the office next week and I’ll see if I can dig in further to help. As it stands I’d actually try something like Googlefonts’ “Open Sans” as an alternative to Calibri, which in my opinion has challenges in addition to its licensing - the spacing of several characters can cause readability issues which Open Sans largely addresses while being of a similar sans serif style. Additionally it’s not as problematic as Arial (a rant for a whole other post). Oh and while I’m here, this would be a good candidate for the idea portal: https://community.servicenow.com/community?id=community_blog&sys_id=f4735f19db684cd45ed4a851ca961942 I would guess you’re not alone in wanting to be able to have the PDF generator easily pick up font styles to which you have ready access and/or for which you have licensing. Let me know if you submit it cause I’ll definitely up vote it (and btw customer ideas carry FAR more importance than ones we submit internally). Again, let me know if you wanna circle back for this when I get back from PTO next week as I think we can probably find a good solution whilst awaiting an official feature update. Hope that’s helpful, Ben ʕノಠᴥಠʔノ*:・゚✧.