diff --git a/app/src/main/java/gui/Fonts.java b/app/src/main/java/gui/Fonts.java index 81e4ebd..8c51e58 100644 --- a/app/src/main/java/gui/Fonts.java +++ b/app/src/main/java/gui/Fonts.java @@ -11,12 +11,14 @@ public class Fonts { public static ImFont COMIC; public static ImFont INFECTED; + private static final String baseDir = ""; + 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); + COMIC = ImGui.getIO().getFonts().addFontFromFileTTF(baseDir + "comic.ttf", 50.0f); + ARIAL_BOLD = ImGui.getIO().getFonts().addFontFromFileTTF(baseDir + "arial_bold.ttf", 50.0f); + ARIAL = ImGui.getIO().getFonts().addFontFromFileTTF(baseDir + "arial.ttf", 50.0f); + CHERI = ImGui.getIO().getFonts().addFontFromFileTTF(baseDir + "cheri.ttf", 50.0f); + INFECTED = ImGui.getIO().getFonts().addFontFromFileTTF(baseDir + "INFECTED.ttf", 50.0f); } }