檢查fontconfig.properties.src
:
關注鏈接的不同字體的外觀形象
monospaced.plain.alphabetic=Courier New
monospaced.plain.chinese-ms950=MingLiU
monospaced.plain.chinese-ms950-extb=MingLiU-ExtB
monospaced.plain.hebrew=David
monospaced.plain.japanese=MS Gothic
monospaced.plain.korean=GulimChe
monospaced.bold.alphabetic=Courier New Bold
monospaced.bold.chinese-ms950=PMingLiU
monospaced.bold.chinese-ms950-extb=PMingLiU-ExtB
monospaced.bold.hebrew=David Bold
monospaced.bold.japanese=MS Gothic
monospaced.bold.korean=GulimChe
monospaced.italic.alphabetic=Courier New Italic
monospaced.italic.chinese-ms950=PMingLiU
monospaced.italic.chinese-ms950-extb=PMingLiU-ExtB
monospaced.italic.hebrew=David
monospaced.italic.japanese=MS Gothic
monospaced.italic.korean=GulimChe
monospaced.bolditalic.alphabetic=Courier New Bold Italic
monospaced.bolditalic.chinese-ms950=PMingLiU
monospaced.bolditalic.chinese-ms950-extb=PMingLiU-ExtB
monospaced.bolditalic.hebrew=David Bold
monospaced.bolditalic.japanese=MS Gothic
monospaced.bolditalic.korean=GulimChe
還要注意的是字體渲染在Linux上從Windows不同了很多,看到IDEA-57233瞭解更多詳情。
你可以嘗試將Windows的TTF字體文件複製到Linux:
- couri.ttf
- courbi.ttf
- courbd.ttf
- cour.ttf
安裝他們在那裏而不是Linux Courier New版本(如果它不同),然後在IDEA中設置這個字體。
根據你在Windows XP上的截圖字母,在Monospaced和Courier中看起來相同的新字體,所以它是相同的字體。數字看起來不同,但它可能是一些JVM問題。
對於Ubuntu Monospaced字體是不同的,它是通過設計,但是Courier New看起來與Windows XP相同,除了不同的別名/提示/渲染也是由JVM設計的。你可以看到如何從上面鏈接的IDEA問題中調整它。
嗨,我已經檢查了Courier New。 顯然不是使用的字體,但謝謝。 – user703888
您可能希望附加Windows XP上的等寬字體,Windows XP上的Courier New字體和IDEA中Linux上的Courier New字體的屏幕截圖,以便我們看到問題所在。 – CrazyCoder
感謝您的截圖,我已經更新了我的回覆。 – CrazyCoder