我有一個將HTML轉換爲PDF的腳本。在Windows上,它運行得很好。Arial和Courier不能在Ubuntu上工作
但是,當我在Ubuntu上運行腳本時,Arial和Courier字體無法正常工作。
我推測這是因爲默認情況下這些字體不會隨Ubuntu一起提供。沒關係,這沒什麼大不了的。
我只是想知道我應該更改以下內容,以便它仍然可以在Windows上工作,並在Ubuntu上分別使用關閉到Arial和Courier的字體?
font-family: "Arial";
font-family: courier;
感謝
'font-family:Arial,courier,sans-serif;'?或'font-family:Arial,sans-serif;'和'font-family:courier,monospace;'分開使用它們。這是否工作? – Xufox
您可以爲Ubuntu – vsnyc
@vsnyc安裝[Microsoft Fonts](https://help.ubuntu.com/community/RestrictedFormats/Microsoft_Fonts)是的,在系統中使用相關字體也是一個好主意。 – Xufox