Added hiero glyphs

This commit is contained in:
Willem Cazander 2022-02-14 17:07:26 +01:00
parent 4e2346a47b
commit 89ae253bc2
5 changed files with 16 additions and 5 deletions

View file

@ -47,10 +47,13 @@ public class ImGuiSetup {
ImFontGlyphRangesBuilder fontBuilder = new ImFontGlyphRangesBuilder();
addRangeUnicodePlane0(fontBuilder);
final short[] glyphRanges = fontBuilder.buildRanges();
// Base font has almost everything
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/code2000.ttf").readBytes(), 22, fontConfig, glyphRanges);
fontConfig.setMergeMode(true);
// note: merges 148 chars, 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(), 22, fontConfig, glyphRanges);
// Egyptian hieroglyphs
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/new-gardiner-bmp.ttf").readBytes(), 22, fontConfig, glyphRanges);
fontConfig.destroy();
}

View file

@ -76,7 +76,7 @@ public class SystemBaseGlyphApp extends DefaultDeskApp {
if (set.BȍőnNumber27() == null) {
return buf.toString();
}
for (int i=0;i<33;i++) {
for (int i=0;i<27;i++) {
buf.append(set.BȍőnPrintNumber27(i, 99));
buf.append(set.BȍőnNumber27().BȍőnCharSeperator());
buf.append(" ");