feat(libSceFreeTypeOt): resolve FT_Stroker_ExportBorder and FT_Stroker_ParseOutline #17772
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17772"
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 zkiller1236 on 2026-11-09T15:27:36Z.
What
libSceFreeTypeOt exported NIDs
7cIS2cFG3PEandRvFx7dv9ThUas throwing placeholders (sceFreeTypeOtStrokerExportBorder,sceFreeTypeOtStrokerParseOutline).tools/nid_names.pyshows those NIDs are exactlyFT_Stroker_ExportBorderandFT_Stroker_ParseOutline, which libSceFreeType already implements. The module's other stroker exports (FT_Stroker_New,Done,Set,GetCounts,GetBorderCounts,BeginSubPath, …) already reach those libSceFreeType wrappers, as the "Forwarded FreeType exports" debt entry describes.ForwardExports.cppgets two typed thunks with the same NIDs, mirroring the existing stroker thunks.FT_Stroker_Export(2rcvKZfm5rI) is left as it was; #17580 implements it separately. The debt entry now covers the two exports: their prototypes are assumed to be FreeType's, which are the same from 2.4.11 (the provider's dated version) to the bundled 2.15.0; output is bundled 2.15.0's and is not compared with a console; and on WindowsFT_Stroker_ExportBorderthrows for a non-null stroker and outline, as the libSceFreeType wrapper already does with a 32-bit nativeFT_Pos.Tested
Linux x86-64, GCC, Release with
BUILD_TESTING=ON, onmainffe575754a.guest_freetype_ot(raw.prx, names) andguest_freetype_ot_patched(patched.prx, NIDs) pass. The test gainsStrokers(): it creates a library through the module'sFT_Init_FreeType, strokes an 8-point, two-contour outline with a conic point both closed and open, and comparesParseOutline(including a null outline), the left and right border counts, and every exported point, tag and contour against host FreeType. With a 32-bitFT_Posit instead expectsExportBorderto throw. On Windows the stroker checks run only in patched mode, because the raw DLL does not export the libSceFreeType names.main'sExport.cpp,guest_freetype_ot_patchedaborts withsceFreeTypeOtStrokerParseOutline_nid_no_patch not implemented. Raw mode on Linux resolves by name through the libSceFreeType dependency, so it does not exercise the change.guest_freetype*tests that were built pass.check_conventions.py --base origin/mainpasses.pr_overlap.pyreports no shared exports. It could not compare ten PRs that conflict withmain; their diffs do not touch these NIDs, except that #17580 rewrites the same debt line, which is a text conflict only.ExportBorderthrow is disclosed and tested, and the Windows raw-mode guard is in the commit.Windows was not built here; PS5/title execution is untested.
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)Claude Code assisted with the investigation, implementation, tests and review.
🤖 Generated with Claude Code
https://claude.ai/code/session_0145C1bggApen1Stz87XDkXo