This commit is contained in:
Willem Cazander 2022-02-11 02:53:00 +01:00
parent 76014cfe87
commit 56a0686fef

View file

@ -42,7 +42,7 @@ public class ImGuiSetup {
final short[] glyphRanges = fontBuilder.buildRanges(); final short[] glyphRanges = fontBuilder.buildRanges();
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/code2000.ttf").readBytes(), 24, fontConfig, glyphRanges); io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/code2000.ttf").readBytes(), 24, fontConfig, glyphRanges);
fontConfig.setMergeMode(true); fontConfig.setMergeMode(true);
// note: just for 3 sub chars for SUBHEX, but still missing 2 chars from T12 alt1 clock // note: merges 148 chars, just for 3 sub chars for SUBHEX, but still missing 2 chars from T12 alt1 clock
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/free-sans.ttf").readBytes(), 24, fontConfig, glyphRanges); io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/free-sans.ttf").readBytes(), 24, fontConfig, glyphRanges);
fontConfig.destroy(); fontConfig.destroy();
} }