feat(libSceFreeType): implement FT_Get_Font_Format and the deprecated TrueType patent calls #10579
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10579"
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-24T11:10:43Z.
What
Adds three libSceFreeType exports that forward to the bundled FreeType 2.13.3 through the guest face:
FT_Get_Font_Format, and the deprecatedFT_Face_CheckTrueTypePatentsandFT_Face_SetUnpatentedHinting, which always return false in ftpatent.c. They follow the existingFT_Get_X11_Font_Formatadapter, including the null and unregistered-face behaviour. Console signatures and the console library version are unverified, as for the other FreeType exports; the debt entry says so.Commits: for each function in turn (
FT_Get_Font_Format,FT_Face_CheckTrueTypePatents,FT_Face_SetUnpatentedHinting), the implementation, its test and its debt entry.Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_face_compatcompares the three calls with a nativeFT_Facefor a BDF bitmap face and a TrueType face, checks the pointer equals the native face's, and covers a null and an unregistered guest face. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran the test and the neighbouringguest_freetype_face_infowith that check disabled in a local, uncommitted edit; both exit 0.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:57:35Z.
Review: COMMENTED
Reviewed — reviewer's fix-up confirmed at head
The fix-up commit adds the canonical Api.hpp include to the one file the reviewer named, and the hosted Windows check passed at this head.
What I ran
2c1b05002a(matches batch).2c1b05002a; git show of core/libs/prx/libSceFreeType/src/FaceCompat.cpp at the head.Results
Findings
2c1b050touches only core/libs/prx/libSceFreeType/src/FaceCompat.cpp (1 insertion), and line 1 is #include "prx/libSceFreeType/include/Api.hpp". The file defines FT_Get_Font_Format_nid_postfix (line 13) and FT_Face_CheckTrueTypePatents_nid_postfix (line 18).Sources
github.com/boykopovar/AnyPS5@2c1b05002a/core/libs/prx/libSceFreeType/src/FaceCompat.cpp (L1-L18)Not verified