feat(libSceFreeTypeOt): resolve FT_Open_Face, FT_GlyphSlot_Oblique and FT_GlyphSlot_Embolden #17776
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17776"
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:34:47Z.
What
libSceFreeTypeOt exported NIDs
OeNH41MA2Vs,wBKAYO7yEXwand73vg+nRH68gas throwing placeholders (sceFreeTypeOtOpenFace,sceFreeTypeOtGlyphSlotOblique,sceFreeTypeOtGlyphSlotEmbolden).tools/nid_names.pyshows they are exactlyFT_Open_Face,FT_GlyphSlot_ObliqueandFT_GlyphSlot_Embolden, which libSceFreeType implements. The module's other face and glyph-slot exports (FT_New_Face,FT_New_Memory_Face,FT_Load_Glyph,FT_Render_Glyph,FT_Set_Pixel_Sizes, …) already reach those libSceFreeType wrappers, so faces and slots are shared objects between the two modules.ForwardExports.cppgets three typed thunks with the same NIDs, next toFT_Load_Glyph's.libSceFreeType/include/Api.hpp.The three names leave the debt file's "provider-specific prototypes unverified" list and get an entry saying their prototypes are assumed to be FreeType's public ones, unverified for the provider's version, with results, limits and throws those of the libSceFreeType wrappers over the bundled FreeType 2.15.0. This is the same approach as #17772 for two stroker exports; the two PRs are independent and merge cleanly together.
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 gainsSynthesis(), which works entirely through the module's exports: it opens theSquareGlyphFontfixture from memory withFT_Open_Face(and checks the null-arguments and null-library error codes), sets 18 px, loads glyph 1, appliesFT_GlyphSlot_ObliqueorFT_GlyphSlot_Embolden, and compares the advance, metrics and every outline point with host FreeType doing the same. It also checks that the glyph has an outline and that the synthesis changed it, and calls both functions with null. On Windows these checks run only in patched mode, because the raw DLL does not export the libSceFreeType names.main'sExport.cpp,guest_freetype_ot_patchedaborts withsceFreeTypeOtOpenFace_nid_no_patch not implemented.guest_freetype*tests that were built pass.check_conventions.py --base origin/mainpasses.pr_overlap.pyreports no shared exports; #10606, #15052, #16122 and #16832 edit neighbouring lines (mostly the debt file's long identified-NIDs line), and ten PRs that conflict withmaincould not be compared. Their diffs do not mention these NIDs or names.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T14:53:49Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect is visible in the reviewed changes; Windows build and PS5 behavior remain unverified.
What I ran
Reviewed head
6fd8704e1caa5ce322b994e4c7ce49514ec81cabusing the prepared diff andrepo_read.pyfor targeted source context. I did not run tests or builds. The author reports Linux tests and a negative control; those results were not independently run here.Results
Negative control
Could not run a negative control in this review environment. The author reports that the patched test aborts against the previous export implementation.
Findings
Blocking
None.
Non-blocking
_WIN32, and the author reports that Windows was not built. A Windows build would confirm these new thunks compile and export as intended.Sources
Not verified
core/libs/prx/libSceFreeType/include/Api.hpp,core/libs/prx/libSceFreeTypeOt/Export.cpp,core/libs/prx/libSceFreeTypeOt/ForwardExports.cpp,core/libs/tests/GuestFreeTypeOt.cpp, anddocs/dev/debt/libSceFreeTypeOt.md. Read targeted source context in the first, third, and fourth files. No changed files were excluded from the review artifacts; full-file contents beyond the relevant hunks were not read.To get this to a good state
Nothing is required.
Optional: build the Windows target to verify the guarded forwarding thunks.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:52:51Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed forwarding declarations and implementations align with the existing libSceFreeType wrappers, and the included test covers the new paths.
What I ran
Reviewed head
8600fdb32bfcaab8009d0280878868ad50c5dc23. I readdescription.md,commits.md,manifest.json,diff.patch, all five changed source files, and the relevant libSceFreeType wrapper implementations and test setup. No commands or tests were run; the test results below are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Linux test execution, the reported negative control, and convention and overlap checks were not independently run. Windows build and PS5/title execution were not performed. All changed files listed in
manifest.jsonwere read; no changed files were excluded.To get this to a good state
Nothing is required.