mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-28 06:52:47 +00:00
Merge pull request #1307 from lioncash/pl
services/pl_u: Add missing Korean font to the fallback case for shared fonts
This commit is contained in:
commit
3ef134a092
|
@ -253,14 +253,16 @@ PL_U::PL_U() : ServiceFramework("pl:u"), impl{std::make_unique<Impl>()} {
|
||||||
LOG_WARNING(Service_NS,
|
LOG_WARNING(Service_NS,
|
||||||
"Shared Font file missing. Loading open source replacement from memory");
|
"Shared Font file missing. Loading open source replacement from memory");
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const std::vector<std::vector<u8>> open_source_shared_fonts_ttf = {
|
const std::vector<std::vector<u8>> open_source_shared_fonts_ttf = {
|
||||||
{std::begin(FontChineseSimplified), std::end(FontChineseSimplified)},
|
{std::begin(FontChineseSimplified), std::end(FontChineseSimplified)},
|
||||||
{std::begin(FontChineseTraditional), std::end(FontChineseTraditional)},
|
{std::begin(FontChineseTraditional), std::end(FontChineseTraditional)},
|
||||||
{std::begin(FontExtendedChineseSimplified),
|
{std::begin(FontExtendedChineseSimplified), std::end(FontExtendedChineseSimplified)},
|
||||||
std::end(FontExtendedChineseSimplified)},
|
{std::begin(FontKorean), std::end(FontKorean)},
|
||||||
{std::begin(FontNintendoExtended), std::end(FontNintendoExtended)},
|
{std::begin(FontNintendoExtended), std::end(FontNintendoExtended)},
|
||||||
{std::begin(FontStandard), std::end(FontStandard)},
|
{std::begin(FontStandard), std::end(FontStandard)},
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
for (const std::vector<u8>& font_ttf : open_source_shared_fonts_ttf) {
|
for (const std::vector<u8>& font_ttf : open_source_shared_fonts_ttf) {
|
||||||
const FontRegion region{static_cast<u32>(offset + 8),
|
const FontRegion region{static_cast<u32>(offset + 8),
|
||||||
|
|
Loading…
Reference in a new issue