feat(libSceFreeType): implement FT_Select_Size #9384
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9384"
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 Ondra97 on 2026-10-21T20:03:56Z.
What
Add
FT_Select_Sizeto the existing LP64 guest FreeType bridge so callers can select an advertised bitmap strike. The adapter maps the guest face to the native face, preserves FreeType's error precedence and publishes the resulting size metrics without refreshing unrelated guest face or glyph records.The name and NID
LlM3ydj7W1sare in the PS5 3.20 inventory. The signature and selection behavior follow bundled FreeType 2.13.3. Console ABI and errors remain unverified and are recorded in debt. No other open PR implements this export. The current overlap scan found adjacent declarations and independent FreeType features in #9550, #10604 and #10606; #9848 touches the same debt file for macOS native-symbol visibility. Retain each distinct change during later merges.Tested
Rebased on upstream
main941ace5f342c24c84b0712b8db0a75e0232bc44d; tested PR head815fc413eac20cc21973d62920ed122b5499b5e5. Windows 11 Pro 10.0.26300, Ryzen 9 7900X, 31.7 GiB RAM, WinLibs MinGW-w64 GCC 15.2.0 UCRT, Ninja, Release,BUILD_TESTING=ON, pinned bundled dependencies. The tests used the CPU.cmake --build <build> --target libSceFreeType guest_freetype_tests guest_freetype_bitmap_tests guest_freetype_request_size_tests guest_freetype_outline_tests guest_freetype_outline_mutations_tests guest_freetype_charmap_tests guest_freetype_charmap_info_tests guest_freetype_face_info_tests guest_freetype_names_tests guest_freetype_sfnt_names_tests guest_freetype_list_tests guest_font_tests guest_system_font_tests guest_font_writing_line_tests font_face_lifetime_tests --parallel 10: the production FreeType library and focused fixtures built successfully without a source overlay.ctest --test-dir <build> -R '^(guest_freetype.*|guest_.*font.*|font_.*)$' --output-on-failure --no-tests=error: 17/17 passed, zero skips. The integratedguest_freetypetest reported 26 native request comparisons and 18 bitmap glyph comparisons forFT_Select_Sizeusing generated bitmap fonts.ctest --test-dir <build> -R '^public_headers($|_compile_)' -j 8 --output-on-failure --no-tests=error: 65/65 passed.FT_Select_Sizenow has its sole export declaration in publicApi.hpp; the integrated test uses it and a typedGuestLibrary*parameter. The production export body is unchanged from the old hosted PR.python tools/check_test_registration.py <build>,python tools/check_conventions.py --base origin/main,python tools/check_main_sync.py --base origin/main --strict, andgit diff origin/main...HEAD --check: passed.python tools/pr_overlap.py --branch codex/pr9384-rebase-20261025 --repo boykopovar/AnyPS5 --jobs 12completed; the only same-export match was this PR's old head. #9550, #10604 and #10606 add different FreeType features, and #9848 changes macOS visibility plus a separate debt entry.The missing-feature baseline lacks
FT_Select_Size_nid_postfix. The earlier negative control that removedSyncSizefailed the metric comparison, but was not repeated on this head. The complete all-target build, patched-libraries loader, packaged PRX NID inspection, console probe and title run were not performed on this rebased head. Console compatibility remains unverified as recorded in debt.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 MarcZX10 on 2026-10-22T06:29:20Z.
Review: DISMISSED
The implementation and synthetic bitmap-strike coverage are well scoped, and I found no exact open PR or issue for
FT_Select_Size. The head is 472 commits behind currentmain(d6eafa54d0464258574fd2f71889754d05a5bc93). The merge-tree with current main is clean; please rebase/update and refresh checks before merge. ## Checks observed - Localpython3 tools/check_conventions.py --base upstream/main: passed. - Localgit diff --check upstream/main...refs/review/9384: passed. - Local Linuxguest_freetype_teststarget: built and linked. - Localguest_freetyperuntime: aborted before assertions because this host lacks LZCNT, BMI1, BMI2, MOVBE, AVX2 and FMA. No local runtime pass is claimed. - The PR reports Windows 11 native-FreeType comparisons, negative controls, and 9/9 focused tests. Those runs were not reproduced locally. Existing hosted eligibility, conventions, intake, labels and report checks passed; product build jobs were skipped.I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.