I've using mpdf to show photo user in pdf. I've tried to insert new font Poppins
to mpdf. I have tried using import
from google fonts like @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
, then I want to change font weight, but the result is same.
Here's the code
<html><head><style> @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');</style></head><body style="background-image: url('<?= base_url(); ?>assets/image.png');width:50%;height:10%;background-size:no-repeat;background-size:cover;text-align:center;"><h2 style="margin-top:550px;width:76%;text-align:center;position:absolute;z-index:200;font-family: 'Poppins', sans-serif;font-weight: 900;"><?= "name"; ?></h2></body></html>
Do you know how to change font weight or add font family correctly ?