feat(libSceFreeType): expose charmap metadata #9069
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9069"
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 santhoshkumar-dev on 2026-10-21T11:36:00Z.
What
Add
FT_Get_Charmap_Index,FT_Get_CMap_Language_IDandFT_Get_CMap_Formatto the guest bridge. Each query maps the original guest charmap record to the native face's corresponding charmap, without changing the selection. Language IDs return as unsigned 64-bit values and formats as signed 64-bit values under the existing LP64 guest model.Null handles follow native FreeType. A copied or unregistered record with a non-null face throws: its private native cmap state cannot be reconstructed from a public guest snapshot. This limitation and the unverified console signatures/returns are recorded in debt.
This branch builds on #9064's shared build/test configuration and debt edits; merge it first. #8247 is merged; the remaining shared CMake edits with #8286 follow #9064's dependency order. No matching implementation was found in main or open, closed and merged PR history.
Names/NIDs are in the PS5 3.20 inventory. Signatures, null behavior and metadata queries follow bundled FreeType 2.13.3.
Tested
Windows 11 x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release,
BUILD_TESTING=ON, main3e91c8edf5plus #9064.cmake --build build --target libs guest_freetype_charmap_info_tests guest_freetype_outline_tests guest_freetype_tests guest_freetype_charmap_tests -j6.0x80000001and0xFFFFFFFF, both selected and unselected maps, selection preservation, null handles and copied-record rejection. A generated BDF fixture verifies the native non-SFNT defaults.-Wall -Wextra -Werrorsource checks and repository conventions passed. Compiled mutations that sign-extend language IDs or query the selected map instead of the requested map fail the regression.3e91c8edf5. All system libraries and seven FreeType test targets built; all seven registered tests passed (0.10 / 0.09 / 0.07 / 0.07 / 0.09 / 0.05 / 0.08 s). C++ changes merged cleanly; temporary CMake/debt resolutions and merge commits are not published.edmDMsPE7Zg,2UZg+FAym4candMXgrzq0nh1Q.Historical build limitation (2026-10-21): the default Windows build on the stated base failed at
ImageArrayWindowPastLayerLimit.cppbecause static alignment 65536 exceeded MinGW COFF's maximum 8192. Merged #8310 fixes that declaration; this is no longer a current-main blocker. The library/test results above retain their stated PR head and base.No title, PS5 hardware or Linux runtime was tested.
Rebase audit (2026-10-21): rebased onto main
d099bc6cd8, including the now-merged #8247 and #8289. All system libraries built. A temporary combination of the seven remaining FreeType branches passed all nine tests (0.07 / 0.07 / 0.06 / 0.06 / 0.16 / 0.04 / 0.06 / 0.06 / 0.05 s); all seven branches passed conventions. Temporary integration commits were not published.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 github-actions[bot] on 2026-10-21T11:36:51Z.
Progress report (
2f161d4→0ed04b2)📈 System libraries: 42.44% (+0.02%, +5 implemented functions)
✅ 5 implemented
FT_Get_CMap_Format_nid_postfixFT_Get_CMap_Language_ID_nid_postfixFT_Get_Charmap_Index_nid_postfixFT_Outline_Check_nid_postfixFT_Outline_Get_CBox_nid_postfix