feat(libSceFreeType): select and iterate character maps #8253
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8253"
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-20T07:08:05Z.
What
Add
FT_Select_Charmap,FT_Set_Charmap,FT_Get_First_CharandFT_Get_Next_ChartolibSceFreeType. A title can select an exposed encoding map and enumerate its actual character-to-glyph entries instead of relying on the initially selected map and individual lookups.Map selection translates a guest charmap pointer to the corresponding native object and updates only the selected guest pointer. It preserves the current glyph and guest outline edits. Foreign and fabricated charmap pointers are rejected. Iteration preserves the LP64 guest interface and the low-32-bit input conversion used inside bundled FreeType 2.13.3, with optional glyph-index outputs and native end-of-map behavior.
Move the existing generated-font fixture into a shared test header and add an optional symbol map, allowing the regression to switch between Unicode U+0041 and symbol U+F041. Console signatures and errors remain unverified and are recorded in the debt file.
Tested
Windows 11 x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, full project configured with
BUILD_TESTING=ON.cmake --build build --target guest_freetype_tests guest_freetype_charmap_tests --parallel 8: passed.ctest --test-dir build -R '^guest_freetype(_charmap)?$' --output-on-failure: both passed (0.02 s / 0.11 s).-std=c++20 -Wall -Wextra -Werror -fsyntax-only: passed.python tools/check_conventions.py --base origin/main: passed.git diff --cached --check: passed before committing.The new test compares selection and iteration with native FreeType for both maps; checks the selected guest pointer and glyph lookup; tests null faces/outputs, missing encodings, foreign/fabricated maps, end-of-map, a real character at code zero and 64-bit input values; and verifies edited outline coordinates survive selection.
This is independent of #8247. A temporary local merge with that PR merged cleanly and passed both tests (0.06 s / 0.07 s); the merge was then aborted so this branch contains only the character-map feature. No title, Linux runtime or console hardware tested. The full suite was not run.
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-20T07:08:39Z.
Progress report (
3fd1cc3→c233067)📈 System libraries: 66.71% (+0.02%, +4 implemented functions)
✅ 4 implemented
FT_Get_First_Char_nid_postfixFT_Get_Next_Char_nid_postfixFT_Select_Charmap_nid_postfixFT_Set_Charmap_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T16:46:42Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceFreeType.mdL4