feat(libSceFreeType): open guest font streams #16636
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16636"
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 DonRyuzaki on 2026-11-07T11:21:33Z.
What
Support FT_OPEN_STREAM in libSceFreeType FT_Open_Face. A bridge maps the guest LP64 stream record to a host FreeType stream, routes read and close callbacks, and retains the bridge with the face. It supports memory-backed and callback-backed guest streams. The two FreeType modules now share one definition of the 80-byte guest stream record; the previous duplicate caused the Windows build failure.
FreeType closes the guest stream when the face is destroyed or an open attempt fails. Console signature, lifetime and errors are unmeasured. Mixed source flags, FT_OPEN_DRIVER and FT_OPEN_PARAMS remain unsupported. Guest stream and backing bytes must outlive the face. No title unblock is claimed.
Tested
b312f82bfc, clean rebased headf56e11947af. Full runtimelibsand eight focused test executables built with two below-normal-priority compiler jobs. Runtime NID patching passed, including libSceFreeType and libSceFreeTypeOt. The relinker was not rebuilt locally.guest_freetype_open_face,guest_freetype_ot_constants,guest_freetype_ot_memory,guest_freetype_ot_raccess,guest_freetype_ps_font_value,guest_freetype_attach_file,guest_freetype_outline_render, and both raw and patchedguest_freetype_postscript_privatecases. The stream test covers memory and callback streams, reads, metadata, and close behavior. The neighboring tests cover FreeType exports merged into main during the rebase.tools/check_conventions.py --base origin/mainandgit diff --checkpassed. Public-header audit verified 407 libraries and 33,491 exports.GuestStreamRec. The shared definition fixed that failure; the replacement hosted Windows check passed on the prior head1331b31c93. Fresh hosted checks for this rebased head are separate from the local results. JJenkx independently reported 3/3guest_freetype_open_facepasses on the initial head, and blawesom reported a 68/68 Linux FreeType suite on the prior head; neither report tests this final rebase.tools/pr_overlap.pycannot query GitHub becauseghis unavailable.No console, retail title, Linux or system-dependency build was tested locally on this rebased head.
Checklist