Package mindustry.ui
Class Fonts
java.lang.Object
mindustry.ui.Fonts
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static arc.scene.style.TextureRegionDrawable
getGlyph
(arc.graphics.g2d.Font font, char glyph) static arc.graphics.g2d.TextureRegion
getLargeIcon
(String name) static int
getUnicode
(String content) static String
getUnicodeStr
(String content) static boolean
hasUnicodeStr
(String content) static void
static void
static void
Called from a static context for use in the loading screen.static void
static void
Called from a static context to make the cursor appear immediately upon startup.static void
mergeFontAtlas
(arc.graphics.g2d.TextureAtlas atlas) Merges the UI and font atlas together for better performance.static void
registerIcon
(String name, String regionName, int ch, arc.graphics.g2d.TextureRegion region) static String
unicodeToName
(int unicode)
-
Field Details
-
def
public static arc.graphics.g2d.Font def -
outline
public static arc.graphics.g2d.Font outline -
icon
public static arc.graphics.g2d.Font icon -
iconLarge
public static arc.graphics.g2d.Font iconLarge -
tech
public static arc.graphics.g2d.Font tech -
logic
public static arc.graphics.g2d.Font logic
-
-
Constructor Details
-
Fonts
public Fonts()
-
-
Method Details
-
getUnicode
-
getUnicodeStr
-
hasUnicodeStr
-
loadSystemCursors
public static void loadSystemCursors()Called from a static context to make the cursor appear immediately upon startup. -
cursorScale
public static int cursorScale() -
loadFonts
public static void loadFonts() -
unicodeToName
-
getLargeIcon
-
registerIcon
-
loadContentIcons
public static void loadContentIcons() -
loadContentIconsHeadless
public static void loadContentIconsHeadless() -
loadDefaultFont
public static void loadDefaultFont()Called from a static context for use in the loading screen. -
mergeFontAtlas
public static void mergeFontAtlas(arc.graphics.g2d.TextureAtlas atlas) Merges the UI and font atlas together for better performance. -
getGlyph
public static arc.scene.style.TextureRegionDrawable getGlyph(arc.graphics.g2d.Font font, char glyph)
-