feat(libSceFreeType): reverse and translate guest outlines #9075
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9075"
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:49:29Z.
What
Implement
FT_Outline_ReverseandFT_Outline_Translateover the existing guest outline arrays. Reversal preserves each contour's first point, reverses the remaining points and corresponding tags, and toggles the reverse-fill flag. Translation uses defined unsigned addition and bit-preserving conversion for the guest's 64-bit coordinates, including wrap at the signed limits.The exports are present in the PS5 3.20 inventory. Behavior follows bundled FreeType 2.13.3's outline routines and its ADD_LONG definition. Console signatures, unsigned count assumptions and overflow compatibility remain unverified and are recorded in debt.
This is a follow-up to #9069 and its #9064 parent; merge #9069 first. #8247 is merged; the remaining shared CMake edits with #8286 follow that dependency order. Open, closed and merged PR searches found no implementation of these two functions.
Tested
Windows 11 x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release,
BUILD_TESTING=ON, main3e91c8edf5plus #9069.ctest --test-dir build --output-on-failure -R '^guest_freetype(_charmap|_outline|_charmap_info|_outline_mutations)?$': 5 passed (0.05 / 0.06 / 0.06 / 0.06 / 0.06 s).-Wall -Wextra -Werrorchecks and conventions passed. The packaged PRX containsbH12z-W8uIMand7HoSJ30RWXk.Latest main
47fa6eecf8was checked before publication; its newer changes do not touch FreeType or libc.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.
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.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:50:21Z.
Progress report (
2f161d4→a5b7e4d)📈 System libraries: 42.45% (+0.03%, +7 implemented functions)
✅ 7 implemented
FT_Get_CMap_Format_nid_postfixFT_Get_CMap_Language_ID_nid_postfixFT_Get_Charmap_Index_nid_postfixFT_Outline_Check_nid_postfixFT_Outline_Get_CBox_nid_postfixFT_Outline_Reverse_nid_postfixFT_Outline_Translate_nid_postfix