feat(libSceFreeType): implement FT_Library_SetLcdFilter and FT_Library_SetLcdFilterWeights #10582
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10582"
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:12:44Z.
What
Adds
FT_Library_SetLcdFilterandFT_Library_SetLcdFilterWeightsto libSceFreeType, forwarding to the bundled FreeType 2.13.3 through the guest library. The bundled build hasFT_CONFIG_OPTION_SUBPIXEL_RENDERINGoff, so both returnFT_Err_Unimplemented_Featureas in ftlcdfil.c and no filter takes effect. The five weights are read from the guest buffer throughGuestArenaPrepareHostRead_nid_no_patchand copied before the call. Whether the console library enables subpixel rendering and its signatures are unverified; the debt entry says so.Commits: for each function in turn (
FT_Library_SetLcdFilter, thenFT_Library_SetLcdFilterWeights), the implementation, its test and its debt entry.Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_lcd_filtercompares the return code of each call with the native API for every filter value includingFT_LCD_FILTER_MAX,-1and99, for valid and null weights, and for a null library. 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.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:37Z.
Review: COMMENTED
Reviewed — debt-file requests still open at this head
The duplicate debt entry and the 129 count the reviewer asked to change are both still in the file at a8f5479fea.
What I ran
Results
Findings
Sources
github.com/boykopovar/AnyPS5@a8f5479fea/docs/dev/debt/libSceFreeTypeOt.md (L3-L5)github.com/boykopovar/AnyPS5@a8f5479fea/core/libs/prx/libSceFreeTypeOt/Export.cpp (L1-L10)Not verified
52c09d567d.