feat(libfontconfig): map FreeType character index #16634

Merged
DonRyuzaki merged 1 commit from upstream-pr/16634 into main 2026-11-11 09:02:54 +00:00
DonRyuzaki commented 2026-11-07 11:14:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-07T11:14:09Z.


What

Implement FcFreeTypeCharIndex (NID l240XTbw2vk) using the guest FreeType face adapter. It searches Unicode and Microsoft Symbol charmaps in the pinned Fontconfig order, with the U+F000 offset for symbol encoded glyphs. It does not pass a guest face to the host ABI. Console version, signature and behavior are unmeasured; foreign faces are unsupported. No title unblock is claimed.

Tested

  • Windows 11 x86-64, MinGW GCC 15.2.0, Release; upstream main eed8517b31, clean head f2f9469f5c. libfontconfig and the focused test target built; direct NID patching of the built libfontconfig.prx passed. Full runtime and relinker were not rebuilt on this branch.
  • guest_fontconfig_char_index passed 1/1 with a generated Unicode/Microsoft Symbol font, checking charmap search, symbol fallback, null face and missing glyph.
  • tools/check_conventions.py --base origin/main and git diff --check passed; public headers audit passed (407 libraries, 30,874 exports).
  • tools/pr_overlap.py cannot query GitHub because local gh is unavailable. Connected search found no open PR for this export. Overlapping-file patches in #16564 and #15294 address separate Fontconfig topics.

No console, retail title or Linux test. A symbol-only font was not tested.

Checklist

  • Based on current main; no other open PR implements the same function
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stub added
  • No notes, investigation Markdown files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5201061966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16634). Originally posted by [DonRyuzaki](https://github.com/DonRyuzaki) on 2026-11-07T11:14:09Z. --- ### What Implement FcFreeTypeCharIndex (NID l240XTbw2vk) using the guest FreeType face adapter. It searches Unicode and Microsoft Symbol charmaps in the pinned Fontconfig order, with the U+F000 offset for symbol encoded glyphs. It does not pass a guest face to the host ABI. Console version, signature and behavior are unmeasured; foreign faces are unsupported. No title unblock is claimed. ### Tested - Windows 11 x86-64, MinGW GCC 15.2.0, Release; upstream main eed8517b31, clean head f2f9469f5c. libfontconfig and the focused test target built; direct NID patching of the built libfontconfig.prx passed. Full runtime and relinker were not rebuilt on this branch. - guest_fontconfig_char_index passed 1/1 with a generated Unicode/Microsoft Symbol font, checking charmap search, symbol fallback, null face and missing glyph. - tools/check_conventions.py --base origin/main and git diff --check passed; public headers audit passed (407 libraries, 30,874 exports). - tools/pr_overlap.py cannot query GitHub because local gh is unavailable. Connected search found no open PR for this export. Overlapping-file patches in #16564 and #15294 address separate Fontconfig topics. No console, retail title or Linux test. A symbol-only font was not tested. ### Checklist - [x] Based on current main; no other open PR implements the same function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stub added - [x] No notes, investigation Markdown files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Codex)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!16634
No description provided.