Skip to content

fix(libSceFont): select the Hangul Light system font - #8997

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
HQasper:claude/project-thread-wjykmu
Oct 25, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
HQasper:claude/project-thread-wjykmu

Conversation

@HQasper

@HQasper HQasper commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

What

Follow-up to #8058. With both Light and Medium console Hangul files installed, a Light system font set selected SCEPS4Yoongd-Medium.otf for its Hangul characters. It now selects SCEPS4Yoongd-Light.otf, as shadPS4 maps SCE-EXT-HANGUL-L.OTF (font_internal.cpp L440-L442). Regular, Medium and Bold and the fallback priority are unchanged.

guest_system_font gets a regression with generated fonts whose Hangul advances differ per weight (Light 40, Medium 65, Bold 80 px), for a Latin-primary and a Japanese-primary Light set and a Regular and a Bold set. The debt entry now says the fallback priority and the Vietnamese bit rule are inferences, and links shadPS4 at a pinned commit.

The fix was written by @vittoriosalvadore as a contribution to the #8058 branch (HQasper#5), which merged before it could be folded in; this PR carries their commit unchanged onto current main.

Tested

Linux x86-64, GCC, Release, on main f894ba6: guest_system_font, guest_font, guest_font_writing_line, font_face_lifetime, font_face_lifetime_replace and font_face_lifetime_churn pass. With SystemFont.cpp reverted to main, guest_system_font fails at the first new Light check (line 353). tools/check_conventions.py --base main and git diff --check pass. No title was run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@clairtonmichel

Copy link
Copy Markdown

Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):

  • Built cleanly with zero errors.
  • Ran the complete libSceFont test suite (guest_font, guest_system_font, writing line, and font face lifetime/churn tests): 100% passed successfully (6/6 green in 0.06s).
  • Hangul Light system font selection behaves correctly on host. Ready to merge!

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5209 docs/dev/debt/libSceFont.md
PR 8250 docs/dev/debt/libSceFont.md

@xXPBSXx

xXPBSXx commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main is clean. I built only guest_system_font_tests; ctest -N -R guest_system_font lists exactly one test.

PR head tested: a4079e9d4cf9bdb84c09d29a67ae509c55b03fad.

Results (3 runs each):

  • PR head: guest_system_font passes 3/3.
  • Baseline: I kept the PR's test and replaced only core/libs/prx/libSceFont/src/SystemFont.cpp with the version from the PR's merge base (f894ba69d3), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.

Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants