ttf:
otf:
both are the same font but different fontfile types
I am running Java 7 in Windows 7
According to Miguel Sousa by Adobe the bug is not in the fonts https://github.com/adobe/source-sans-pro/issues/32#issuecomment-23319673
I am just setting the default font to the new font. The TTF version works without any issues
Font font_o = Font.createFont(Font.TRUETYPE_FONT, fonts.class.getResourceAsStream("fonts/TTF/SourceSansPro-Regular.ttf"));
//Font font_o = Font.createFont(Font.TRUETYPE_FONT, fonts.class.getResourceAsStream("fonts/OTF/SourceSansPro-Regular.otf"));
Font font_n=font_o.deriveFont(Font.PLAIN, UIManager.getLookAndFeelDefaults().getFont("defaultFont").getSize());
UIManager.getLookAndFeelDefaults().put("defaultFont",font_n);
Why is there a difference in the lineheight?
conclusion (forums.oracle.com/thread/2573652 similair as many his post there, nothing special)
WinXp on Java6
this code will help you to find difference(ies) between two fonts (and to report all diff's to author)
returns all available atributes from (java.awt.font.)TextAttribute for concrete Font
you can to get detailed properties from (almost) all TextAttributes
with output
from code Nimbus L&F
from code Oldies L&Fs