MCPcopy Create free account
hub / github.com/Card-Forge/forge / forHeight

Method forHeight

forge-gui-mobile/src/forge/assets/FSkinFont.java:57–66  ·  view source on GitHub ↗
(final float height)

Source from the content-addressed store, hash-verified

55 }
56
57 public static FSkinFont forHeight(final float height) {
58 int size = MIN_FONT_SIZE + 1;
59 while (true) {
60 FSkinFont f = _get(size);
61 if (f != null && f.getLineHeight() > height) {
62 return _get(size - 1);
63 }
64 size++;
65 }
66 }
67
68 //pre-load all supported font sizes
69 public static void preloadAll(String language) {

Callers 7

drawBackgroundMethod · 0.95
drawCardWithOverlaysMethod · 0.95
drawPtBoxMethod · 0.95
updateStaticFieldsMethod · 0.95
drawCardLabelMethod · 0.95
drawSubLabelMethod · 0.95
drawMethod · 0.95

Calls 2

_getMethod · 0.95
getLineHeightMethod · 0.95

Tested by

no test coverage detected