fix: Icons being too big for regular text

This commit is contained in:
WerWolv
2025-07-31 20:32:59 +02:00
parent 9557041c3a
commit fd8bdbdc90
4 changed files with 12 additions and 11 deletions

View File

@@ -758,7 +758,7 @@ EXPORT_MODULE namespace hex {
std::string name;
std::vector<u8> fontData;
Offset offset;
std::optional<u32> defaultSize;
std::optional<float> fontSizeMultiplier;
};
class Font {
@@ -794,8 +794,8 @@ EXPORT_MODULE namespace hex {
}
void registerMergeFont(const std::fs::path &path, Offset offset = {}, std::optional<u32> defaultSize = std::nullopt);
void registerMergeFont(const std::string &name, const std::span<const u8> &data, Offset offset = {}, std::optional<u32> defaultSize = std::nullopt);
void registerMergeFont(const std::fs::path &path, Offset offset = {}, std::optional<float> fontSizeMultiplier = std::nullopt);
void registerMergeFont(const std::string &name, const std::span<const u8> &data, Offset offset = {}, std::optional<float> fontSizeMultiplier = std::nullopt);
void registerFont(const Font& font);
FontDefinition getFont(const UnlocalizedString &fontName);