1
I want to display a file with the font-family Georgia, already downloaded and put in the fonts folder of your lib, but I am searching and does not display in Georgia format. I’d like some help from you.
style
body{
font-family:Georgia;
font-size:14px;
color:#555;
line-height:20px;
}
If you were with the Georgia source, the 5.1 would not be aligned, correct?
In the browser displays?
– Sam
Can make available the source you are using, I can test here
– user148170
Face if you want to reference a font that is in the folder you have to use @font-face to index the font in the document and only then it will be available in the font-family... Since Georgia is native to Windows, I did a test here and it worked perfectly
– hugocsl
hugocsl I even did this, but I was putting the whole file in bold. @font-face { font-family: "Georgia"; font-Weight: normal; font-style: normal; font-Variant: normal; src: url("'.$url.'/dompdf/lib/fonts/Georgia.ttf") format("truetype"); }
– smourao
Where it’s in bold
font-weight: normal;
in the CSS– hugocsl
@sam http://sistema.ferreiraeborzone.com.br/feb-homologacao/dompdf/lib/fonts/Georgia.ttf
– smourao