1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Icons not being fractionally scaled anymore

This commit is contained in:
WerWolv 2024-03-28 22:15:30 +01:00
parent dd5ddbcc0f
commit 8030de7af2

View File

@ -18,13 +18,13 @@ namespace hex::fonts {
* efficient when packing the glyphs into the font atlas and therefor make the atlas much smaller. * efficient when packing the glyphs into the font atlas and therefor make the atlas much smaller.
*/ */
ImHexApi::Fonts::loadFont("Blender Icons", romfs::get("fonts/blendericons.ttf").span<u8>(),{ { ICON_MIN_BI, ICON_MAX_BI } }, { -1_scaled, -1_scaled }, 0, 13); ImHexApi::Fonts::loadFont("Blender Icons", romfs::get("fonts/blendericons.ttf").span<u8>(),{ { ICON_MIN_BI, ICON_MAX_BI } }, { -1_scaled, -1_scaled });
ImHexApi::Fonts::loadFont("VS Codicons", romfs::get("fonts/codicons.ttf").span<u8>(), ImHexApi::Fonts::loadFont("VS Codicons", romfs::get("fonts/codicons.ttf").span<u8>(),
{ {
{ ICON_MIN_VS, ICON_MAX_VS } { ICON_MIN_VS, ICON_MAX_VS }
}, },
{ -1_scaled, -1_scaled }, 0, 13); { -1_scaled, -1_scaled });
ImHexApi::Fonts::loadFont("Unifont", romfs::get("fonts/unifont.otf").span<u8>(), {}, {}, 0, 16); ImHexApi::Fonts::loadFont("Unifont", romfs::get("fonts/unifont.otf").span<u8>(), {}, {}, 0, 16);
} }