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

Method _get

forge-gui-mobile/src/forge/assets/FSkinFont.java:48–55  ·  view source on GitHub ↗
(final int scaledSize)

Source from the content-addressed store, hash-verified

46 return _get((int)Utils.scale(unscaledSize));
47 }
48 public static FSkinFont _get(final int scaledSize) {
49 FSkinFont skinFont = Forge.getAssets().fonts().get(scaledSize);
50 if (skinFont == null) {
51 skinFont = new FSkinFont(scaledSize);
52 Forge.getAssets().fonts().put(scaledSize, skinFont);
53 }
54 return skinFont;
55 }
56
57 public static FSkinFont forHeight(final float height) {
58 int size = MIN_FONT_SIZE + 1;

Callers 5

getMethod · 0.95
forHeightMethod · 0.95
preloadAllMethod · 0.95
shrinkMethod · 0.95
increaseMethod · 0.95

Calls 4

getAssetsMethod · 0.95
fontsMethod · 0.80
getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected