Where are the Print Format files?

I want to upload a custom font to use it in a custom Print Format. I tried to place it in some directories within the /home/frappe/frappe-bench/site/ directory, but it had no effect. My question is:

What is the directory that stores the custom Print Format files and where is it?

Hi, custom print formats are save in the database, unless you have separate app and doctype in it. https://github.com/frappe/fonts this should help you with fonts.

1 Like

Thanks for your response @Ranjith.
I saw the link and now I am looking for how to point to my custom font in the HTML file for the Print Format.

I putted this inside HEAD tag:

<link type="text/css" rel="stylesheet" href="{{ base_url }}/assets/frappe/css/custom_font.css">

trying to imitate other fonts that already come in the system, but it does not work.

I have a directory in /home/frappe/frappe-bench/sites/assets/frappe/css/fonts/ that contain the custom font in several formats and the CSS file.