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:
zzz
2020-02-25 14:14:34 +00:00
parent 5bed4a0d7f
commit d9ea6b1f9c
3 changed files with 7 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -1,3 +1,6 @@
2020-02-25 zzz
* Replace jrobin with rrd4j 3.5 (ticket #2684)
* 2020-02-25 0.9.45 released
2020-02-21 zzz

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 0;
public final static long BUILD = 1;
/** for example "-test" */
public final static String EXTRA = "";