MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / loadStatusFont

Method loadStatusFont

src/org/albite/albite/BookCanvas.java:1874–1896  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1872 }
1873
1874 private void loadStatusFont() {
1875 //#if (TinyMode || TinyModeExport)
1876//# fontStatus = fontPlain;
1877//#
1878//# int max = 0;
1879//# int w;
1880//# char[] chars =
1881//# {'#', ':', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
1882//#
1883//# for (int i = 0; i < chars.length; i++) {
1884//# w = fontStatus.charWidth(chars[i]);
1885//# if (w > max) {
1886//# max = w;
1887//# }
1888//# }
1889//#
1890//# fontStatusMaxWidth = max;
1891 //#else
1892 final AlbiteBitmapFont status = loadBitmapFont("status");
1893 fontStatusMaxWidth = status.maximumWidth;
1894 fontStatus = status;
1895 //#endif
1896 }
1897
1898 private AlbiteBitmapFont loadBitmapFont(final String fontName) {
1899

Callers 1

initializeMethod · 0.95

Calls 1

loadBitmapFontMethod · 0.95

Tested by

no test coverage detected