Commits

Anonymous committed 5af2ffe

IconFont loads font with default size (-1)

Comments (0)

Files changed (1)

src/main/java/org/controlsfx/iconfont/IconFont.java

 	
 	public IconFont( String fontName, InputStream in   ) {
 		this.fontName = fontName;
-		Font.loadFont(in, DEFAULT_ICON_SIZE);
+		Font.loadFont(in, -1);
 	}
 	
 	public IconFont( String fontName, String urlStr ) {
 		this.fontName = fontName;
-		Font.loadFont(urlStr, DEFAULT_ICON_SIZE);
+		Font.loadFont(urlStr, -1);
 	}
 	
 	public IconFont fontSize(double size) {