HTML to PDF/RTF Java converter and tools › 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
December 30, 2015 at 09:23
#28101
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;
}