gzdoom/libraries/ZWidget/include/zwidget/core/resourcedata.h
Christoph Oelckers f5c4964902 use a more complete font did some primitive font substitution logic.
NotoSans was chosen because it contains all Latin, Cyrillic and Greek characters in one file.
To test the substitution the separate font files for Armenian and Georgian were also added, even though the languages have not been translated.
2024-01-02 18:58:39 +01:00

15 lines
447 B
C++

#pragma once
#include <vector>
#include <cstdint>
#include <string>
struct SingleFontData
{
std::vector<uint8_t> fontdata;
std::vector<std::pair<uint32_t, uint32_t>> ranges;
int language = -1; // mainly useful if we start supporting Chinese so that we can use another font there than for Japanese.
};
std::vector<SingleFontData> LoadWidgetFontData(const std::string& name);
std::vector<uint8_t> LoadWidgetImageData(const std::string& name);