2
對於symfony項目,我使用snappy bundle,它使用wkhtmltopdf將網頁轉換爲pdf。我正在使用谷歌字體來使用不同的字體。字體在網頁上顯示得很好,但在轉換爲pdf後,任何使用字體的部分在字母之間的間距不好。有什麼方法可以修復字母上的間距?在谷歌字體中使用wkhtmltopdf時,添加了額外的字母空間
圖片PDF的:(使用谷歌字體,EB Garamond字體)
HTML代碼:
<link href='http://fonts.googleapis.com/css?family=EB+Garamond' rel='stylesheet' type='text/css'>
Normal Text: qwertyuiopasdfghjklzxcvbnm<br>
<div style="font-family: 'EB Garamond', serif;">
google EB Garamond: qwertyuiopasdfghjklzxcvbnm<br>
google EB Garamond: workstation ergonomic evaluations.</div><br>
Normal Text: workstation ergonomic evaluations.
我還試圖使用其他字體從其他soruces,如Adobe typekit和仍然有同樣的問題。
同樣的問題在這裏 - 有沒有找到一個解決方案? – Mat 2014-11-18 17:47:59