HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Custom font, font-size › Re: Re: Custom font, font-size
I spoke to soon 🙁
ok.. so now I´m trying this:
body * {<br />
background: none;<br />
font-size:20px;<br />
font-family:"HM Ampersand Ultra Light";<br />
}
and it´s applying the font, but if I change to 14px it dosent?
I have tried all combinations I can think of :/
Targeting classes, spans, divs, p tags, with “*” selector etc etc…
I can´t post the font because I´m not sure if that is ok with the customer.. but I doubt that there is a problem with the font file.
I have tried setting Arial on body and Times on h2 and that works but I can´t get it to work with custom fonts..
Is there a limit to the number of custom fonts that can be used?