feat(libSceFreeTypeOt): provide the FreeType trigonometry and outline… #11613
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11613"
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 noamroger on 2026-10-26T22:50:06Z.
What
libSceFreeTypeOt declares six FreeType exports whose NIDs are already identified (
L1uHkWTazkIFT_Sin,dojyaLKzKN0FT_Tan,3WpTQrvGUcUFT_Vector_Unit,++lgV9pRsO4FT_Outline_Decompose,weVsBCT+TTQFT_Outline_Get_Orientation,Bhm8Injl0KAFT_Outline_Copy) but throws on all of them. libSceFreeType already implements and tests the same functions, so this PR builds them into libSceFreeTypeOt from those sources, the wayOutlineBorders.cppis already shared, and removes the six throwing stubs.FT_Outline_Get_OrientationandFT_Outline_Copymove unchanged fromlibSceFreeType/Export.cpptolibSceFreeType/src/OutlineOrientation.cpp, so both modules compile them.Trigonometry.cpp,OutlineDecompose.cppandOutlineOrientation.cppand links the bundled freetype with--exclude-libs,ALL, as libSceFreeType does.FT_New_SizeandFT_Request_Sizekeep throwing, since libSceFreeTypeOt creates no face. Their debt entry is cut to them, and a new entry records that console behaviour of this module is unverified and that the shared trigonometry source also exports FT_Cos and FT_Angle_Diff, which the 3.20 inventory does not list for this module.Tested
Linux x86-64, full build with GCC 13. The new
guest_freetype_ottest links only libSceFreeTypeOt and the bundled freetype. It compares FT_Sin, FT_Tan and FT_Vector_Unit with FreeType on 4 096 random angles, decomposition events (line, conic and cubic segments, with and without shift/delta) and orientation withFT_Outline_DecomposeandFT_Outline_Get_Orientation, and checks the copy, its size mismatch and its null-source errors. All 29guest_freetype*tests pass (libSceFreeType unchanged after the move, Ol/Ot outline border raw and patched). Thepublic_headerstests pass, and the patchedlibSceFreeTypeOt.prxexports the six NIDs.tools/check_conventions.py --base origin/mainpasses. Not tested on a PS5.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)Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T23:04:17Z.
Review: CHANGES_REQUESTED
Reviewed head
ad04cc65bf76fa39d295935fe8e534a5c1562d34.[P1] Restore the six NID-to-function export aliases.
Export.cppremoves theAPS5_EXPORT("NID", sceFreeTypeOt..._nid_no_patch)registrations along with the throwing stubs, but the new implementations inOutlineOrientation.cpp,OutlineDecompose.cppandTrigonometry.cpponly defineFT_*_nid_postfixfunctions. They do not register those functions withAPS5_EXPORT. The macro inExportMacros.hppcreates theNID_nid_no_patch_cutlinker aliases used by the PRX export table; a matching function symbol alone does not preserve the sixlibSceFreeTypeOtexports. As a result, consumers importing these NIDs will still fail to resolve them even though the new unit test can call the functions directly.Please add the six
APS5_EXPORTaliases forL1uHkWTazkI,dojyaLKzKN0,3WpTQrvGUcU,++lgV9pRsO4,weVsBCT+TTQandBhm8Injl0KA, targeting the correspondingFT_*_nid_postfixfunctions. Then verify the built PRX export table contains all six NIDs; the direct-linkedguest_freetype_ottest does not cover that registration. I did not rerun the reported Linux tests. Hosted eligibility, conventions, intake, labels and report pass; build/relinker jobs are skipped by path policy.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T23:33:12Z.
Review: APPROVED
Re-reviewed updated head
a05a031d1e8b34a2771bc4fae45c884944ccb80b. The export table concern is resolved: the patched test now loadslibSceFreeTypeOt.prxand resolves all six NIDs directly, while the raw-module run resolves the named helper symbols. The author also reports the NID lookup fails against the unpatched module and all 30guest_freetype*tests pass. Hosted conventions, eligibility, labels and report pass; platform build and relinker jobs are skipped by path policy. I found no remaining blocking issue.