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

Method FSkinFont

forge-gui-mobile/src/forge/assets/FSkinFont.java:98–110  ·  view source on GitHub ↗
(int fontSize0)

Source from the content-addressed store, hash-verified

96 BitmapFont font;
97
98 private FSkinFont(int fontSize0) {
99 if (fontSize0 > MAX_FONT_SIZE) {
100 scale = (float)fontSize0 / MAX_FONT_SIZE;
101 }
102 else if (fontSize0 < MIN_FONT_SIZE) {
103 scale = (float)fontSize0 / MIN_FONT_SIZE;
104 }
105 else {
106 scale = 1;
107 }
108 fontSize = fontSize0;
109 updateFont();
110 }
111 static int indexOf (CharSequence text, char ch, int start) {
112 final int n = text.length();
113 for (; start < n; start++)

Callers

nothing calls this directly

Calls 1

updateFontMethod · 0.95

Tested by

no test coverage detected