1
**My code**
@font-face {
font-family: 'certificateitalic';
src: url('/webfontkit-20140113-085051/certificateitalic-webfont.eot');
src: url('/webfontkit-20140113-085051/certificateitalic-webfont.eot?#iefix') format('embedded-opentype'),
url('/webfontkit-20140113-085051/certificateitalic-webfont.woff') format('woff'),
url('/webfontkit-20140113-085051/certificateitalic-webfont.ttf') format('truetype'),
url('/webfontkit-20140113-085051/certificateitalic-webfont.svg#certificateitalic') format('svg');
font-weight: normal;
font-style: normal;
,這是它在generatecertificate.html.erb使用
請確保您的位置正確。/ webfontkit-20140113-085051/certificateitalic-webfont.eot'。 – Anup
路徑是正確的。我已經把文件放在公共folder.font風格正在處理HTML和字體不顯示在wkhtmltopdf – Anusha
http://stackoverflow.com/questions/14467820/wkhtmltopdf-not-displaying-truetype-fonts – Anup