forked from I2P_Developers/i2p.i2p
rrd4j patch (ticket #2684)
So that DejaVu fonts are not required in the classpath. We set the default font to Monospaced. All fonts are then set in SummaryRenderer.
This commit is contained in:
@ -277,6 +277,7 @@ public interface RrdGraphConstants {
|
||||
* @return a new {@link java.awt.Font} instance
|
||||
*/
|
||||
public static Font getFont(int type, int size) {
|
||||
/*
|
||||
String fontPath;
|
||||
if (type == Font.BOLD)
|
||||
fontPath = "/DejaVuSansMono-Bold.ttf";
|
||||
@ -288,6 +289,8 @@ public interface RrdGraphConstants {
|
||||
} catch (FontFormatException | IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
*/
|
||||
return new Font("Monospaced", type, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user