We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The $html string i send to dompdf gives me a good font when echo`ed. I have already tried to :
Here is my code where i call dompdf
$options = new Options(); $options->set('isHtml5ParserEnabled', true); $dompdf = new Dompdf('A4', $options); $dompdf->loadHtml($html, 'UTF-8'); $dompdf->setPaper('A4'); $dompdf->render(); $output = $dompdf->output();
Here is how it looks inside $html where i call my @font-face
<?php $link = yii\helpers\Url::base(true) . '/web/css/fonts/Roboto-Bold.ttf'; ?> @font-face { font-family: 'Roboto'; font-style: normal; font-weight: normal; src: url( <?php echo $link ?>) format('truetype'); }
The text was updated successfully, but these errors were encountered:
I have the same problem. I can see new fonts in the folder and in dompdf_font_family_cache.php but pdf cant render Cyrillic text
Sorry, something went wrong.
Would help to see a full sample showing the @font-face and the application of the font to an element via font-family.
@font-face
font-family
No branches or pull requests
The $html string i send to dompdf gives me a good font when echo`ed. I have already tried to :
Here is my code where i call dompdf
Here is how it looks inside $html where i call my @font-face
The text was updated successfully, but these errors were encountered: