|
|
|
@ -2,7 +2,7 @@ package mightypork.rogue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import mightypork.gamecore.audio.SoundRegistry; |
|
|
|
|
import mightypork.gamecore.backends.lwjgl.graphics.font.DeferredLwjglFont; |
|
|
|
|
import mightypork.gamecore.backends.lwjgl.graphics.font.LwjglFont; |
|
|
|
|
import mightypork.gamecore.graphics.fonts.DeferredFont; |
|
|
|
|
import mightypork.gamecore.graphics.fonts.FontRegistry; |
|
|
|
|
import mightypork.gamecore.graphics.fonts.Glyphs; |
|
|
|
@ -23,12 +23,12 @@ public class RogueResources implements ResourceSetup { |
|
|
|
|
DeferredFont font; |
|
|
|
|
|
|
|
|
|
//fonts.loadFont("polygon_pixel", new DeferredFont("/res/font/PolygonPixel5x7Standard.ttf", Glyphs.basic, 16));
|
|
|
|
|
fonts.addFont("press_start", font = new DeferredLwjglFont("/res/font/PressStart2P.ttf", Glyphs.basic, 16)); |
|
|
|
|
fonts.addFont("press_start", font = new LwjglFont("/res/font/PressStart2P.ttf", Glyphs.basic, 16)); |
|
|
|
|
|
|
|
|
|
fonts.addFont("battlenet", font = new DeferredLwjglFont("/res/font/battlenet.ttf", Glyphs.basic, 16)); |
|
|
|
|
fonts.addFont("battlenet", font = new LwjglFont("/res/font/battlenet.ttf", Glyphs.basic, 16)); |
|
|
|
|
font.setDiscardRatio(3 / 16D, 2 / 16D); |
|
|
|
|
|
|
|
|
|
fonts.addFont("tinyutf", font = new DeferredLwjglFont("/res/font/TinyUnicode2.ttf", Glyphs.basic, 16)); |
|
|
|
|
fonts.addFont("tinyutf", font = new LwjglFont("/res/font/TinyUnicode2.ttf", Glyphs.basic, 16)); |
|
|
|
|
font.setDiscardRatio(5 / 16D, 3 / 16D); |
|
|
|
|
|
|
|
|
|
// aliases
|
|
|
|
|