feat(libSceFreeType): implement the FreeType module and renderer lookup calls #10602
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10602"
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:13:11Z.
What
Adds
FT_Get_Module,FT_Get_Renderer,FT_Remove_ModuleandFT_Add_Default_Modulesto libSceFreeType, forwarding through the guest library to the bundled FreeType 2.13.3 (ftobjs.c). Module and renderer handles are native objects owned by the library; the guest treats them as opaque, and they are invalid afterFT_Remove_ModuleorFT_Done_FreeType, as in the native API.FT_Add_ModuleandFT_Set_Rendererare not included: they take guest-supplied module classes and parameters whose function pointers the host would have to call. Console signatures are unverified; the debt entries say so.Commits: for each function in turn, in the order above, the implementation, its test and its debt entry.
Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_module_managementcreates a guest library and a native one, and for each call compares the result with the native API: module lookup by name for default, missing and empty names; renderer lookup for every glyph format and an unknown one; removal of several default modules (checking the lookup afterwards), removal of a module belonging to another library, null module and null library; and re-adding the default modules after removing some, including a second call. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran the test at each of the four stages with that check disabled in a local, uncommitted edit; all exit 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)