Added more fonts
This commit is contained in:
parent
528e6b4905
commit
3e40820a58
7 changed files with 1021 additions and 3 deletions
BIN
main-gdxapp/assets/font/code-2001.ttf
Normal file
BIN
main-gdxapp/assets/font/code-2001.ttf
Normal file
Binary file not shown.
BIN
main-gdxapp/assets/font/code-2002.ttf
Normal file
BIN
main-gdxapp/assets/font/code-2002.ttf
Normal file
Binary file not shown.
BIN
main-gdxapp/assets/font/fa-solid-900.ttf
Normal file
BIN
main-gdxapp/assets/font/fa-solid-900.ttf
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
|
@ -49,13 +49,17 @@ 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);
|
||||
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/code-2000.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
|
||||
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);
|
||||
// Nice icons
|
||||
io.getFonts().addFontFromMemoryTTF(Gdx.files.internal("font/fa-solid-900.ttf").readBytes(), 22, fontConfig, glyphRanges);
|
||||
|
||||
fontConfig.destroy();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue