I've been trying to find what is the TrueType font behind Java's logical Monospaced font
on a Windows XP system.
The reason is that I use this font as my code editor's default font in IntelliJ Idea 10
on Windows XP and I recently moved to an Ubuntu system and want the same font in
Intellij Idea.
Currently on Ubuntu I get Courier New as the TrueType of Monospaced, and it is clearly
not the same font as the one used on Windows XP.
Could you please help ?
Thank you.
To be clear, I'm trying to have the Monospaced 12pt WinXP look the same on Ubuntu. As you can see, the Monospaced 12pt WinXP isn't like any of the other versions.
Follow link for image of the different font appearance:
Check fontconfig.properties.src
under jre\lib
directory:
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
Also note that font rendering on Linux differs from Windows a lot, see IDEA-57233 for more details.
You can try to copy Windows ttf font files to Linux:
Install them there instead of the Linux Courier New version (if it's different) and then set this font in IDEA.
According to your screenshot letters on Windows XP look the same in Monospaced and Courier New fonts, so it's the same font. Digits look different, but it's probably some JVM issue.
On Ubuntu Monospaced font is different, it's by design, however Courier New looks the same as on Windows XP except different aliasing/hinting/rendering which is also by JVM design. You can see how to tweak it from the IDEA issue linked above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With