Merge pull request #1172 from emaurel/fix/system-font-test-windows

test(font): move the console font aside instead of deleting it while its face is mapped
This commit is contained in:
Dean 2026-10-08 18:20:25 +13:00 committed by GitHub
commit a8279c01ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ int main() {
FontHandle missing = nullptr;
Require(sceFontOpenFontSet(library, ChineseGb, 1, nullptr, &missing) == SCE_FONT_ERROR_FONT_OPEN_FAILED && missing == nullptr);
std::filesystem::remove(fonts / "SST-Bold.otf");
std::filesystem::rename(fonts / "SST-Bold.otf", root / "SST-Bold.otf");
FontHandle substitute = nullptr;
Require(sceFontOpenFontSet(library, EuropeanBold, 3, nullptr, &substitute) == SCE_FONT_OK);
Require(sceFontSetScalePixel(substitute, 100.0f, 100.0f) == SCE_FONT_OK);