M
M
marq2020-05-08 18:02:41
PHP
marq, 2020-05-08 18:02:41

How, when using the dompdf library, to set the font for all text?

Good afternoon, when using the dompdf library, how can I set the font for all text, regardless of what font was written in the styles? maybe there is some method dompdf.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Neverov, 2020-05-09
@deMone

Unfortunately, the font in styles will override the global font in the same way that it works in CSS.
You can try to put font-family: <the desired font> !important on the body - maybe it will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question