C++字体库开发之字体回退策略十六
回退表
{
"blocks": [
"UBLOCK_BASIC_LATIN",
],
"font": {
"family": "Noto Sans SC",
"style": [
{
"name": "Thin",
"weight": 250,
"sha1": "xxxxx"
},
]
}
}
语言块
blockTable.emplace("UBLOCK_BASIC_LATIN", UBLOCK_BASIC_LATIN);
...
blockTable.emplace("UBLOCK_ARABIC", UBLOCK_ARABIC);
for (const auto& [key, value] : blockTable) {
codeStrToUBlock.emplace(value, key);
}