feat(libSceFreeType): implement FT_Outline_Embolden, FT_Outline_EmboldenXY and FT_Outline_Transform #10594
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10594"
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:48:54Z.
What
Adds
FT_Outline_Embolden,FT_Outline_EmboldenXYandFT_Outline_Transformto libSceFreeType, following the bundled FreeType 2.13.3 (ftoutln.c). The guest outline has 64-bit points, so each adapter runs the native function on a native copy of the outline and writes the resulting points back to the guest arrays; tags and contours are shared. A guest value outside the hostFT_Posrange throws, which only matters where the native type is 32 bits (Windows). A null outline, null matrix or outline without points behaves as in the native API. Console signatures are unverified; the debt entries say so.Commits: for each function in turn (
FT_Outline_Embolden,FT_Outline_EmboldenXY,FT_Outline_Transform), the implementation, its test and its debt entry.Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_outline_transformbuilds identical guest and native outlines (clockwise and counter-clockwise squares, a two-contour frame and a curved contour) and compares error code and every resulting point for several strengths, strength pairs including negative and zero, and five matrices including a rotation and a shear, plus null outline, null matrix and an empty outline. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran the test at each of the three 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)