i create a print format for quotation when is send quotaion by mail the font style is different and when i print the quotaion and save as pdf then font style is different why?
i want that it is same in both.
Hi, the font style might look different in PDFs because it uses a tool called wkhtmltopdf
to make PDFs, and it can show things differently from your browser’s print view. This happens because wkhtmltopdf
uses a different way to handle fonts and styles than your browser does. If things don’t look right, you might need to adjust your design or make sure the right fonts are available for wkhtmltopdf
to use.
how i make it so that in pdf print also apply same css for font style
You can start by making sure your fonts are installed on the server (let’s say .ttf
files):
- Place all
.ttf
files into$HOME/.local/share/fonts/
folder - run
fc-cache -f -v
to regenerate the font cache (you will se a line that says something like:x fonts found at $HOME/.local/share/fonts/
good luck.