feat(libSceFreeTypeOt): implement outline bitmap export #16978
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16978"
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 hyvvs on 2026-11-08T03:45:23Z.
What
Implements
FT_Outline_Get_BitmapinlibSceFreeTypeOt(NID4RRjK-Wd1lU). The Ot export now maps to the existing typed guest-layout adapter inlibSceFreeType/src/OutlineBitmap.cpp, and the adapter source is included in the Ot PRX. It unwraps the guest library, converts LP64 guest outline coordinates with a hostFT_Posrange check, maps guest bitmap metadata, scopes borrowed output-buffer writes withGuestArena::HostWrite, and returns native FreeType status values.Adds a focused Ot differential CTest using the existing square, triangle and conic-curve fixtures. It compares grayscale and monochrome output byte-for-byte with the pinned native FreeType backend and covers unsupported BGRA mode and null inputs.
ABI basis: the PS5 3.20 export inventory and the public FreeType 2.4.12 declaration
FT_Error FT_Outline_Get_Bitmap(FT_Library, FT_Outline*, const FT_Bitmap*). The repository's pinned backend is FreeType 2.15.0. Console runtime behavior and exact firmware-version equivalence have not been measured; raster output may differ from the firmware-era FreeType implementation.d03beaf110. The PRX compiles both the existing outline bitmap adapter and the newly merged memory-record adapter; the technical-debt list retains the upstream 39 still-unidentified exports and removes the now-implemented bitmap function from the named unknown list.Tested
2a5208730d: libSceFreeTypeOt, outline bitmap, memory, constants and raccess targets all built; CTest for guest_freetype_ot_outline_bitmap, guest_freetype_ot_memory, guest_freetype_ot_constants and guest_freetype_ot_raccess passed 4/4.2a5208730d, WSL2 Ubuntu GCC 13.3 Debug with ASan and UBSan: the outline bitmap, memory, constants, and raccess binaries built; CTest all 4/4 passed with ASAN_OPTIONS=detect_leaks=1 and UBSAN_OPTIONS=halt_on_error=1.FT_Outline_Get_Bitmap_nid_postfixfromlibSceFreeTypeOt.prx, not the siblinglibSceFreeType.prx; the Ot PRX exports the wrapper symbol. TheAPS5_EXPORTsource mapping binds NID4RRjK-Wd1lUto it. The patched-NID dynamic-load path was not separately executed.tools/pr_overlap.pyscanned the live open-PR set. It failed closed on shared-file/conflicting PR comparisons; manual review of every reported FreeTypeOt patch found no competing4RRjK-Wd1lUimplementation. Confirmed unrelated shared-file edits include #15865's CMake source-list additions and #16832's LCD-filter debt entry; #12370, #16122 and the other neighboring PRs change different exports. At the time of that ownership audit, the same function name exists inlibSceFreeTypeas a separate provider, intentionally.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)Pull request closed