impr: Significantly reduce memory usage

This commit is contained in:
WerWolv
2025-08-12 18:00:47 +02:00
parent b5a3a8b4c2
commit 6febe9982b
5 changed files with 13 additions and 25 deletions

View File

@@ -776,7 +776,7 @@ EXPORT_MODULE namespace hex {
struct MergeFont {
std::string name;
std::vector<u8> fontData;
std::span<const u8> fontData;
Offset offset;
std::optional<float> fontSizeMultiplier;
};
@@ -814,7 +814,6 @@ EXPORT_MODULE namespace hex {
}
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);