feat(libSceFreeTypeOt): implement glyph control box export #17715

Merged
alvaroelpob merged 8 commits from upstream-pr/17715 into main 2026-11-22 07:18:39 +00:00
alvaroelpob commented 2026-11-09 12:11:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T12:11:55Z.


What

Implement sceFreeTypeOtGlyphGetCBox by forwarding to FreeType’s FT_Glyph_Get_CBox.
Source: FreeType 2.4.11 ftglyph.c. The guest glyph and bounding-box layouts use the existing libSceFreeType adapter; provider-specific console parity remains unverified.

Tested

Linux: suite.py feat/freetypeot-glyph-get-cbox at a80350d4c0: CTest 6575/6575 passed; conventions passed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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:5223649190 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17715). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T12:11:55Z. --- ### What Implement sceFreeTypeOtGlyphGetCBox by forwarding to FreeType’s FT_Glyph_Get_CBox. Source: [FreeType 2.4.11 ftglyph.c](https://github.com/freetype/freetype/blob/c6a66b49e64e9a21c013f23c867d238cf1aa98cb/src/base/ftglyph.c). The guest glyph and bounding-box layouts use the existing libSceFreeType adapter; provider-specific console parity remains unverified. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux: `suite.py feat/freetypeot-glyph-get-cbox` at a80350d4c0: CTest 6575/6575 passed; conventions passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [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
MarcZX10 commented 2026-11-21 04:53:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:53:30Z.

Review: APPROVED


Reviewed — looks good

The change implements the requested glyph control box export through the existing FreeType wrapper, with matching host comparison coverage; no verified blocking defects were found.

What I ran

  • Inspected head a72e37399bfd0b30a6569fa1c3fb75eb06f2fc90 using repo_read.py.
  • No tests were run in this review. The description reports Linux suite.py feat/freetypeot-glyph-get-cbox at a9dfddee39 passing 4806/4806 CTest checks and conventions; this was not independently verified.

Results

Check Result Note
Changed code inspection passed Export forwards to existing glyph wrapper
Automated checks in this review not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

Console ABI and provider-specific parity remain unverified, as stated in the PR description. No test suite was run in this review. Read all five changed files listed in the manifest: core/libs/prx/libSceFreeTypeOt/CMakeLists.txt, core/libs/prx/libSceFreeTypeOt/Export.cpp, core/libs/prx/libSceFreeTypeOt/libSceFreeTypeOt.hpp, core/libs/tests/GuestFreeTypeOtGlyphCBox.cpp, and docs/dev/debt/libSceFreeTypeOt.md. The manifest listed no excluded changed files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002930602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17715#pullrequestreview-6002930602). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T04:53:30Z. **Review:** APPROVED --- # Reviewed — looks good The change implements the requested glyph control box export through the existing FreeType wrapper, with matching host comparison coverage; no verified blocking defects were found. ## What I ran - Inspected head `a72e37399bfd0b30a6569fa1c3fb75eb06f2fc90` using `repo_read.py`. - No tests were run in this review. The description reports Linux `suite.py feat/freetypeot-glyph-get-cbox` at `a9dfddee39` passing 4806/4806 CTest checks and conventions; this was not independently verified. ## Results | Check | Result | Note | |---|---|---| | Changed code inspection | passed | Export forwards to existing glyph wrapper | | Automated checks in this review | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Console ABI and provider-specific parity remain unverified, as stated in the PR description. No test suite was run in this review. Read all five changed files listed in the manifest: `core/libs/prx/libSceFreeTypeOt/CMakeLists.txt`, `core/libs/prx/libSceFreeTypeOt/Export.cpp`, `core/libs/prx/libSceFreeTypeOt/libSceFreeTypeOt.hpp`, `core/libs/tests/GuestFreeTypeOtGlyphCBox.cpp`, and `docs/dev/debt/libSceFreeTypeOt.md`. The manifest listed no excluded changed files. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 06:50:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:50:22Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head a80350d4c0f80917e5692b1b1be8b5bf2b5ac9a using the prepared diff and repo_read.py for changed-file context. No tests or build commands were run.

Results

Check Result Note
Diff and changed lines passed All 8 changed files reviewed
Tests not run Author reports CTest and conventions passed
Build not run No build performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests and build were not run in this review. Console parity is unverified, as noted in the PR description. Read the description, commits, manifest, diff, and all eight changed files: core/libs/prx/libSceFreeType/include/Api.hpp, core/libs/prx/libSceFreeType/src/Glyph.cpp, core/libs/prx/libSceFreeTypeOt/CMakeLists.txt, core/libs/prx/libSceFreeTypeOt/Export.cpp, core/libs/prx/libSceFreeTypeOt/libSceFreeTypeOt.hpp, core/libs/tests/GuestFreeTypeOtGlyphCBox.cpp, docs/dev/debt/changes/feat-freetypeot-glyph-get-cbox.md, and docs/dev/debt/changes/fix-freetype-ot-outline-bitmap-forwarding.md. No changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010860927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17715#pullrequestreview-6010860927). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:50:22Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `a80350d4c0f80917e5692b1b1be8b5bf2b5ac9a` using the prepared diff and `repo_read.py` for changed-file context. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed lines | passed | All 8 changed files reviewed | | Tests | not run | Author reports CTest and conventions passed | | Build | not run | No build performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Tests and build were not run in this review. Console parity is unverified, as noted in the PR description. Read the description, commits, manifest, diff, and all eight changed files: `core/libs/prx/libSceFreeType/include/Api.hpp`, `core/libs/prx/libSceFreeType/src/Glyph.cpp`, `core/libs/prx/libSceFreeTypeOt/CMakeLists.txt`, `core/libs/prx/libSceFreeTypeOt/Export.cpp`, `core/libs/prx/libSceFreeTypeOt/libSceFreeTypeOt.hpp`, `core/libs/tests/GuestFreeTypeOtGlyphCBox.cpp`, `docs/dev/debt/changes/feat-freetypeot-glyph-get-cbox.md`, and `docs/dev/debt/changes/fix-freetype-ot-outline-bitmap-forwarding.md`. No changed files were excluded. ## To get this to a good state Nothing is required.
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!17715
No description provided.