build: Update ImGui to v1.92.1 (#2325)

Update ImGui to the latest version and rewrite most of the font handling
code
This commit is contained in:
Nik
2025-07-10 10:00:39 +02:00
committed by GitHub
parent fa62a675dc
commit d1840a2184
50 changed files with 9932 additions and 5654 deletions

View File

@@ -198,10 +198,20 @@ namespace hex::fonts {
return m_italic.isChecked();
}
[[nodiscard]] const std::string FontSelector::antiAliasingType() const {
[[nodiscard]] AntialiasingType FontSelector::getAntialiasingType() const {
if (isPixelPerfectFont())
return "none";
return m_antiAliased.getValue();
return AntialiasingType::None;
auto value = m_antiAliased.getValue();
if (value == "none")
return AntialiasingType::None;
else if (value == "grayscale")
return AntialiasingType::Grayscale;
else if (value == "subpixel")
return AntialiasingType::Lcd;
else
return AntialiasingType::Grayscale;
}