mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-09 11:30:50 +00:00
f5c4964902
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.
15 lines
447 B
C++
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);
|