I’ve managed to write my own Print Formats to handle our own layout for Invoices, Quotations, and Purchase Orders, and so far so good.
I’m struggling with some practical issues in regard to fonts (probably because of the lack of frappe and CSS skills)
First I’m able to change font sizes in general on the Custom Print Formats, but I’m stuck with the size of one particular field, the {{ doc.terms or “” }}-field.
On the print-preview and actual pdf, the font is too large, so I’ve tried to use:
<p style="font-size:70%">{{ doc.terms or "" }}</p>
but this does not reflect in the actual print layout. Can somebody point me out how to change the overall height of the font for this field? I know that in the actual doctype like Quotation the Term Details has its HTML(?) layout, so I presume it overrules everything I write in the Print Format.
I’ve tried to reduce the size of the used font in the actual DocType, but that brings in other issues:
When changing the font size in the Terms from 11px (this is the smallest size that prints without any layout issues) to 10px, the doc.terms are printed on a new page, like there is a manual page break added leaving a blank page before it with just the header.
When changing the font from 11px to 9px or 8px there is a scrolling bar (yes indeed!) printed at the bottom of the content of the doc.terms-field as the content margins are not fit the page. This happens not in the preview which is ok but only in the actual .pdf print.
I hope there is a way to handle this as it currently renders our printouts just ugly…
The Second part of my ‘font issue’ is using Google fonts. I want to use a particular font (Roboto Condensed)
After many searches on this forum and the internet, I can’t wrap my head around how to implement this to a particular Print Format. This has much to do with the fact that Google changes its API and all examples I’ve found don’t look like what Google says about the way to use these fonts, so if somebody could explain to me like a 5-year-old the current steps I’ve got to take to implement this particular font to my Print Format that would be great!
Any help or insight would be really appreciated!