I'm using dompdf to turn HTML code into pdf. I'm using Google fonts and are importing them like this:
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap');
When i use them in my css with:
h1, h3, .text {
font-family: 'Open Sans';
font-weight: 400;
}
i get my text in the right font. Now when some of the text is bold like the headings or certain pieces of text that are bold, they don't get the right font weight. When i change the font-weight to above 400 they don't work anymore.
Does anyone know how to use multiple font weights in dompdf?