feat(libSceFont): implement the outline, updation and glyph support e… #16645

Closed
majnoon40 wants to merge 1 commit from upstream-pr/16645 into main
majnoon40 commented 2026-11-07 12:25:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by majnoon40 on 2026-11-07T12:25:31Z.


What

sceFontOutlineVertexesInterfaceInit, sceFontSupportSystemUpdation and sceFontSupportGlyphs (libSceFont) and sceFontSelectGlyphsFt (libSceFontFt) follow the PS4 10.71 disassembly BunnyFl cross-checked on the PS5 13.42 module in the review of #14879. The guest_font test pins every result ladder, the written interface bytes, the library byte the updation version sets, the selection table's tags, the re-registration and the two-slot limit. The console's unreleased global lock on an already-registered table and its null-table read are replaced by a released lock and INVALID_PARAMETER, recorded in the debt files with the other unmeasured gaps.

Relationship to other open PRs

  • Overlap flagged at open in the comments: #16640 (the same four exports), #16594 (sceFontSelectGlyphsFt), #15762 (two of the four).
  • #16618 (sceFontFtSupportFontFormats) lists this PR in its Depends on.
  • #16199 (libSceFont graphics services / FontGs) edits the same debt file; whichever side merges second rebases the text.

Tested

guest_font passes on Linux (g++ 14.2, system FreeType 2.13.3, via a direct g++ harness with stubs for the four libc/libkernel symbols the library needs); python3 tools/check_conventions.py --base origin/main passes with no findings; tools/progress.py --module libSceFont --module libSceFontFt counts the four exports as implemented.

Windows 3/3 runs by JJenkx checked head 8c14f007ae. The branch was then rebased onto current main (571cab9f71) as 7616dc4a71: the only change is two debt entries trimmed under the entry length limit — the implementation and the tests are unchanged from the checked head.

Checklist

  • Based on current main (571cab9f71); similar open PRs implement the same functions — overlap flagged at open, see comments
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5201589662 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16645). Originally posted by [majnoon40](https://github.com/majnoon40) on 2026-11-07T12:25:31Z. --- ### What `sceFontOutlineVertexesInterfaceInit`, `sceFontSupportSystemUpdation` and `sceFontSupportGlyphs` (libSceFont) and `sceFontSelectGlyphsFt` (libSceFontFt) follow the PS4 10.71 disassembly BunnyFl cross-checked on the PS5 13.42 module in the review of #14879. The `guest_font` test pins every result ladder, the written interface bytes, the library byte the updation version sets, the selection table's tags, the re-registration and the two-slot limit. The console's unreleased global lock on an already-registered table and its null-table read are replaced by a released lock and `INVALID_PARAMETER`, recorded in the debt files with the other unmeasured gaps. ### Relationship to other open PRs - Overlap flagged at open in the comments: #16640 (the same four exports), #16594 (`sceFontSelectGlyphsFt`), #15762 (two of the four). - #16618 (`sceFontFtSupportFontFormats`) lists this PR in its Depends on. - #16199 (libSceFont graphics services / FontGs) edits the same debt file; whichever side merges second rebases the text. ### Tested `guest_font` passes on Linux (g++ 14.2, system FreeType 2.13.3, via a direct g++ harness with stubs for the four libc/libkernel symbols the library needs); `python3 tools/check_conventions.py --base origin/main` passes with no findings; `tools/progress.py --module libSceFont --module libSceFontFt` counts the four exports as implemented. Windows 3/3 runs by JJenkx checked head `8c14f007ae`. The branch was then rebased onto current `main` (`571cab9f71`) as `7616dc4a71`: the only change is two debt entries trimmed under the entry length limit — the implementation and the tests are unchanged from the checked head. ### Checklist - [x] Based on current `main` (`571cab9f71`); similar open PRs implement the same functions — overlap flagged at open, see comments - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [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

Pull request closed

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!16645
No description provided.