feat(libSceFreeType): implement FT_Open_Face for memory and path sources #10604
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10604"
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 MarcZX10 on 2026-10-24T12:18:00Z.
What
Adds
FT_Open_Faceto libSceFreeType, following the bundled FreeType 2.13.3 (ftobjs.c) with the LP64FT_Open_Argslayout (newGuestOpenArgs, with a layout assertion). It supports theFT_OPEN_MEMORYandFT_OPEN_PATHNAMEsources: a memory source is opened in place likeFT_New_Memory_Face, and a path is read into memory owned by the face likeFT_New_Face. The argument checks and their order follow the native call (null arguments, null library, face-count query with no output, masked face index).FT_OPEN_STREAM,FT_OPEN_DRIVERandFT_OPEN_PARAMSthrow: they carry guest callbacks, module handles or parameter arrays the host cannot use. Console signature, argument layout and errors are unverified; the debt entry says so.Commits: implementation, test, debt entry.
Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_open_facewrites a fixture font under a temporaryapp0directory and compares the guest call with the nativeFT_Open_Facefor a memory source and a path source (face counts, flags, glyph count and metrics), a missing path, a null path, a null memory base, no source, a face-count query with no output, a request for a second face, a masked face index, a null argument block and a null library, and checks that the three unsupported flags throw. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran the test with that check disabled in a local, uncommitted edit; it exits 0. Windows was not run.tools/check_conventions.pyandgit diff --checkpass. No title or GPU involved.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)