feat(libSceFreeType): implement FT_Set_Transform #9329
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9329"
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:35:40Z.
What
Add
FT_Set_Transformto the existing LP64 FreeType guest bridge. A caller can set a matrix and translation for subsequent glyph loads, including rotations, reflections, scaling, shear and reset through null arguments. The setter copies inputs without refreshing the already published glyph or size records.I translate the guest's 32-byte matrix and 16-byte vector into native FreeType records. The name/NID
bcM5xfX2SeAcomes from the PS5 3.20 inventory; the signature and behavior follow bundled FreeType 2.13.3.All components are checked before the native call. On Windows, values outside signed 32-bit
FT_Longthrow and leave the previous transform intact. Console ABI, arithmetic and FreeType-version equivalence remain unverified and are recorded in debt. This PR is independent of #9309 and changes no existing sizing API.Merge after #9802 for documentation insertion order only. Both PRs add separate entries under
Functionalindocs/dev/debt/libSceFreeType.md; #9802 implementsFT_Outline_Get_BBox, while this PR implementsFT_Set_Transform. After #9802 lands, I will retain both debt entries when rebasing this PR. The implementations and test registrations are independent.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:
ea241c01b388b20b22d4586dfeaacef9675704d7. Change:c11623c211420d47bed53c26133979e2bbf7547d.b00235dda0bdf5101c6af181416e57529e5fa2ba: the expandedguest_freetype_teststarget fails to link against the unchanged implementation withundefined reference to FT_Set_Transform_nid_postfix. The base FreeType implementation did not change during rebase. This establishes the missing provider; it is not a baseline runtime result.cmake --build build --parallel 8passed. As a validation-only prerequisite, the build temporarily included the reviewed test alignment fix from #8310 atca55e46f98ad85861dd7567abad0c028274daca1. Its source was restored byte-for-byte afterward and is absent from this PR. The full build validates this feature together with that test-only prerequisite.ctest --test-dir build -R '^(guest_font|guest_system_font|guest_font_writing_line|font_face_lifetime(_replace|_churn)?|guest_freetype(_charmap)?|patched_libraries)$' -V: 9/9 passed, no skips; 360 patched libraries loaded, 0 failed.python tools/check_conventions.py --base origin/main: passed.python tools/check_test_registration.py build: 1165 test executable(s), 0 built and not run as recorded, none newpython tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch codex/feat-freetype-transformreported no overlap. The later #9802 debt insertion is ordered above; its production and test changes are separate.git diff --check: passed. The patched library exports NIDbcM5xfX2SeA.No console or title was run; no title unblock or performance gain 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:36:20Z.
Progress report (
ee67ebc→c11623c)📈 System libraries: 42.11% (+0.01%, +1 implemented functions)
✅ 1 implemented
FT_Set_Transform_nid_postfixImported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T01:56:21Z.
I opened #9550 to add FT_New_Size, FT_Activate_Size and FT_Done_Size. I declared #9329 for merge order because both patches add independent regression helpers before main in GuestFreeType.cpp. Retain both transform and size-object tests when resolving that insertion.
Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T02:20:29Z.
I opened #9560, which adds FT_Outline_Decompose. I declared #9329 for merge order because both patches add different function declarations at the same extern-C insertion in GuestFreeType.cpp. Retain both prototypes. The implementations are independent.