feat(libSceFreeTypeOt): export the vertical-metrics and service-list helpers #16825
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16825"
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 juanpimg on 2026-11-07T17:14:40Z.
What
Adds two
libSceFreeTypeOtexports:ft_synthesize_vertical_metrics(NIDy4Dg0njlwIU) andft_service_list_lookup(NID00MQVzW2OPY). They follow bundled FreeType 2.13.3ftobjs.c; the console prototypes and FreeType version equivalence are unverified.Both exports use the library's resolved-name convention:
<name>_nid_postfix, whichtools/nid_names.pyhashes to the inventory NID, with noAPS5_EXPORTalias. The suffix keeps them distinct from the bundled FreeType's plainft_*symbols, which stay LOCAL in the module, so there is no interposition and no linker flag. The debt entry is 687 characters.Stacked on #16823, which also appends to
Export.cpp,Calc.hppandGuestFreeTypeCorner.cpp. Merge #16823 first; this branch then rebases to just these two functions. The two pull requests declare different NIDs.Tested
CachyOS Linux, kernel 7.3.1-1-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build, rebased onto current
main(d792f1ad5f).guest_freetype_corner,guest_freetype_ot_constants,guest_freetype_ot_memory,guest_freetype_ot_raccess: 4/4 pass, covering normal/negative/clamped/odd-advance/non-zero-advance/null metrics and match/later-match/miss/empty-id/null-array/null-id descriptor cases.readelfon the built PRX shows the two<name>_nid_postfixGLOBAL symbols while the bundledft_synthesize_vertical_metrics/ft_service_list_lookupstay LOCAL, so there is no interposition._nid_postfixsymbols to their inventory NIDs (y4Dg0njlwIU,00MQVzW2OPY) in the patchedlibSceFreeTypeOt.prx.check_conventions.py --base origin/mainreports no findings, including the debt-entry length.python3 tools/check_conventions.py --base origin/main: passes.git diff --check: clean.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)