HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › org/w3c/dom/* classes in ss_css2.jar › Re: Zurich font not happened in pdf
Hi,
I used Zurich font in my pdf. It is displaying in html but not in pdf. In pdf, the default font is appearing.
fonts folder contains all type of font files and properties file with code:
Zurich BT=Zurich.ttf
jsp file:
font.css:
@font-face
{
font-family: ‘Zurich BT’;
src: url(‘fonts/Zurich BT.eot’);
src: local(‘Zurich BT’), url(‘fonts/Zurich BT.ttf’) format(‘truetype’), url(‘fonts/Zurich BT.woff’) format(‘woff’), url(‘fonts/Zurich BT.svg’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
.Zurich{
font-family: ‘Zurich BT’;
font-size:12px;
}