This commit is contained in:
22
app/src/main/java/gui/Fonts.java
Normal file
22
app/src/main/java/gui/Fonts.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package gui;
|
||||
|
||||
import imgui.ImFont;
|
||||
import imgui.ImGui;
|
||||
|
||||
public class Fonts {
|
||||
|
||||
public static ImFont ARIAL;
|
||||
public static ImFont ARIAL_BOLD;
|
||||
public static ImFont CHERI;
|
||||
public static ImFont COMIC;
|
||||
public static ImFont INFECTED;
|
||||
|
||||
public static void createFonts() {
|
||||
COMIC = ImGui.getIO().getFonts().addFontFromFileTTF("comic.ttf", 50.0f);
|
||||
ARIAL_BOLD = ImGui.getIO().getFonts().addFontFromFileTTF("arial_bold.ttf", 50.0f);
|
||||
ARIAL = ImGui.getIO().getFonts().addFontFromFileTTF("arial.ttf", 50.0f);
|
||||
CHERI = ImGui.getIO().getFonts().addFontFromFileTTF("cheri.ttf", 50.0f);
|
||||
INFECTED = ImGui.getIO().getFonts().addFontFromFileTTF("INFECTED.ttf", 50.0f);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user