feat(libSceFreeType): check outlines and query control bounds #9064
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9064"
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 santhoshkumar-dev on 2026-10-21T11:25:52Z.
What
Add
FT_Outline_CheckandFT_Outline_Get_CBoxto the guest FreeType bridge. Contour validation uses the bundled library with an explicit host record; control bounds read guest 64-bit coordinates directly, avoiding WindowsFT_Posnarrowing. Null arguments, empty outlines and all control points follow the public source.Names and NIDs are present in the PS5 3.20 inventory. Behavior comes from bundled FreeType 2.13.3 and its public outline layout. Console signatures, count signedness and errors remain unverified and are recorded in debt.
Open, closed and merged PR searches found no implementation of these two exports. The earlier #8247 debt conflict is resolved by rebasing onto its merged implementation. #8286 still shares the CMake insertion; merge #8286 first. There are no shared exports.
Tested
Windows 11 x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.cmake --build build --target libs guest_freetype_outline_tests guest_freetype_tests guest_freetype_charmap_tests -j6passed. The three registered tests passed (0.25 / 0.12 / 0.34 s).guest_freetype_outlinepassed in 0.15 s. Compiled source mutations that truncate coordinates to 32 bits or reject counts above 32,767 fail the regression.-Wall -Wextra -Werrorchecks and repository conventions passed. The packaged PRX containsC4a3dGgs+Ccand8ZxmGwESvSQ.Rebased onto main
3e91c8edf5; all system libraries rebuilt and the three registered tests passed again (0.14 / 0.07 / 0.07 s).Historical build limitation (2026-10-21): the default Windows build on the stated base failed at
ImageArrayWindowPastLayerLimit.cppbecause static alignment 65536 exceeded MinGW COFF's maximum 8192. Merged #8310 fixes that declaration; this is no longer a current-main blocker. The library/test results above retain their stated PR head and base.No title, PS5 hardware or Linux runtime was tested.
Compatibility validation (2026-10-21): temporarily combined this PR with #8247, #8286, #8289, #9045, #9054 and the charmap-metadata follow-up on main
3e91c8edf5. All system libraries built and all seven FreeType tests passed. The C++ changes merged cleanly; temporary CMake/debt resolutions were used only for this local compatibility check and are not published.Rebase audit (2026-10-21): rebased onto main
d099bc6cd8, including the now-merged #8247 and #8289. All system libraries built. A temporary combination of the seven remaining FreeType branches passed all nine tests (0.07 / 0.07 / 0.06 / 0.06 / 0.16 / 0.04 / 0.06 / 0.06 / 0.05 s); all seven branches passed conventions. Temporary integration commits were not published.Merge coordination update (2026-10-23): the #8558 overlap is a shared debt insertion only. Agreed order is #8558 before #9064, while retaining the existing #8286 order and both debt entries. Filip722 confirmed this order; this is not an implementation dependency. The agreed helper order before #9588 remains.
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-21T11:26:33Z.
Progress report (
2f161d4→9544a3e)📈 System libraries: 42.43% (+0.01%, +2 implemented functions)
✅ 2 implemented
FT_Outline_Check_nid_postfixFT_Outline_Get_CBox_nid_postfixImported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T03:31:29Z.
I opened #9588 for FT_Glyph_Get_CBox. I declared #9064 as an implementation dependency and reuse its existing LP64 FT_Outline_Get_CBox adapter unchanged. Merge this helper PR first; the new query uses it for retained outline glyphs.
Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-22T07:37:38Z.
Confirmed: merge #9064 before #9588. The LP64
FT_Outline_Get_CBoxhelper here is the shared implementation for the retained-outline query; retain one copy of the helper and its existing test, alongside the distinct glyph-query implementation and regression.