feat(libSceFreeType): implement FT_Set_Char_Size #9309
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9309"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-21T18:04:06Z.
What
Add
FT_Set_Char_Sizeto the existing LP64 FreeType guest bridge. Before this change, the known PS5 3.20 NIDxuY99Qcb108had no guest provider. The adapter applies FreeType's point-size and DPI defaults, updates the guest size metrics even after a native error, and leaves the published glyph record unchanged.I use the existing bundled FreeType 2.13.3 implementation and generated font fixture. The export name/NID comes from the PS5 3.20 inventory; behavior comes from its public implementation.
On Windows, dimensions and DPI combinations that would overflow the native 32-bit
FT_Longarithmetic throw before the native call. Console ABI, FreeType-version equivalence and a title unblock remain unverified; the debt entry records those limits.Tested
Windows 11 Pro, Ryzen 9 7900X, 32 GB RAM, NVIDIA RTX 4070 Ti SUPER. WinLibs MinGW-w64 GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.Base:
95d17687aed6bad81082d9bbef01cb1d9c0a384c. Change:7210515acff18da4bf8dd4bd0fa90d8e024b111f. The three feature files are byte-identical to the initially validated patch after rebasing onto this base.cecb540a63f614d2b06cbb557c6d1f6f02475fa3(the FreeType implementation is unchanged on the rebased base): the expandedguest_freetype_teststarget fails to link against the unchanged base implementation withundefined reference to FT_Set_Char_Size_nid_postfix. This is a missing-provider check, not a baseline runtime test.cmake --build build --target guest_freetype_tests guest_freetype_charmap_tests --parallel 8andctest --test-dir build -R '^guest_freetype(_charmap)?$' -V: 2/2 passed, no skips. Fourteen direct native request comparisons (12 success and 2 error results) compare all published size metrics and subsequent glyphs. Additional checks cover 64-bit negative arguments, oversized requests and DPI, invalid face/size precedence, independent faces, recovery, and preservation of the existing glyph record.cmake --build build --parallel 8passed. The validation tree temporarily included only the reviewed test alignment fix from #8310, pinned atca55e46f98ad85861dd7567abad0c028274daca1. The affected source was restored byte-for-byte afterward (SHA-25656e35719289aa06739d4b84f51ac781f8e5d138db8f9007d01159624d2f8466e) and is absent from this PR. The full build therefore validates this feature together with the test-only prerequisite #8310.ctest --test-dir build -R '^(guest_font|guest_system_font|guest_font_writing_line|font_face_lifetime(_replace|_churn)?|guest_freetype(_charmap)?|patched_libraries)$' --output-on-failure: 9/9 passed, no skips; all 360 patched libraries loaded, 0 failed.libSceFreeType.prxexport table contains NIDxuY99Qcb108.python tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch codex/feat-freetype-char-size: no overlap. I separated the test/debt insertion points from #8558 and the other pending FreeType PRs; the new export does not duplicate their functionality.python tools/check_conventions.py --base origin/main: passed.python tools/check_test_registration.py build: 1,165 test executables registered, none unregistered.git diff --check: passed.No console or game was run. The available PRAGMATA registries do not import this export, so no title unblock is claimed.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T18:04:57Z.
Progress report (
606297f→7210515)📈 System libraries: 42.11% (+0.01%, +1 implemented functions)
✅ 1 implemented
FT_Set_Char_Size_nid_postfixImported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T00:24:56Z.
I am preparing a separate
FT_Get_Gaspimplementation. It shares only thelibSceFreeType.mddebt insertion with this PR; there is no shared export or runtime dependency. I will list #9309 as a merge-order dependency and rebase that debt entry after this PR merges. No changes to this branch are needed.