Closed Pankaj-Pippin closed 2 years ago
Hi,
We can make us poppin font for pdf generation like this
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap"
rel="stylesheet">
Wrong css use
font-weight: 900; font-family: 'Poppins-Bold', sans-serif;
.noMargin {
margin: 0;
font-size: 43.44px !important;
font-weight: 900;
font-family: 'Poppins-Bold', sans-serif;
margin-left: -0.5%;
color: #0C111F;
letter-spacing: 0px;
margin-top: -1%;
}
Correct
.noMargin {
margin: 0;
font-size: 43.44px !important;
font-family: 'Poppins', sans-serif;
font-weight: 700;
margin-left: -0.5%;
color: #0C111F;
letter-spacing: 0px;
margin-top: -1%;
}
font-family: 'Poppins', sans-serif; font-weight: 700;
Hi,
When we try to make use of google web fonts like poppins which work well in any browser but its replacing it to dejavu-sans font while pdf generation
Font is installed in linux system and windows both.
we tried some of the solution found in net including the custom .conf file
51-local.conf
Tried to use like this too
Any one ever used custom fonts properly in linux nodejs application to generate pdf please help
Note: We can check the pdf font using "pdf xchange viewer" visually sans and poppin have very little difference but using this app we can test which one is actually used
poppins-v20-latin.zip