mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Keep default font at whole-integer sizes
This commit is contained in:
@@ -65,7 +65,7 @@ namespace hex::fonts {
|
||||
Font addDefaultFont() {
|
||||
ImFontConfig config = m_config;
|
||||
config.FontBuilderFlags |= ImGuiFreeTypeBuilderFlags_Monochrome | ImGuiFreeTypeBuilderFlags_MonoHinting;
|
||||
config.SizePixels = getAdjustedFontSize(std::floor(ImHexApi::System::getGlobalScale()) * 13.0F);
|
||||
config.SizePixels = std::floor(getAdjustedFontSize(ImHexApi::System::getGlobalScale() * 13.0F));
|
||||
|
||||
auto font = m_fontAtlas->AddFontDefault(&config);
|
||||
m_fontSizes.emplace_back(false, config.SizePixels);
|
||||
|
||||
Reference in New Issue
Block a user