Dompdf: Does not recognize cirilicu

Created on 26 Sep 2016  路  3Comments  路  Source: dompdf/dompdf

I make site in cirilica. Cirilica is Serbian (Europe) language.

This is my node:
http://prntscr.com/cmlauu
And this is pdf.
http://prntscr.com/cmlb2l

He make pdf, but from some reason does not recognize our letter.

How to solve this problem?

question

Most helpful comment

You would add that styling to your document's stylesheet.

Since you used composer you should not need to add any other packages.

All 3 comments

Take a look at the Unicode How-To.

Quickest fix is to style your text using the bundled DejaVu fonts (e.g. <style>* { font-family: DejaVu Sans, sans-serif; }</style>).

Thank you. But where do put *{ font-family: DejaVu Sans, sans-serif; }?

I use dompdf in entity_print module in drupal 8. Does I need to instal https://github.com/phenx/php-font-lib/

I write this code composer require dompdf/dompdf onluy. :)

You would add that styling to your document's stylesheet.

Since you used composer you should not need to add any other packages.

Was this page helpful?
0 / 5 - 0 ratings