I have bundled a .ttf font inside a JAR archive which I load with a routine along this lines:
[snip]
is = IdeUiUtil.class.getResourceAsStream(fontName);
font = Font.createFont(Font.TRUETYPE_FONT, is);
font = font.deriveFont(style, size);
[snip]
UPDATE: The font is used in the title of a TitledBorder
, and will eventually also be used in a couple of JLabels
.
The problem is, that on a Window platform it looks all jaggy. On linux, it's nicely anti-aliased. What do I have to do so it's anti-aliased on windows as well?