feat(libfreetype): apply guest default properties #16627

Merged
DonRyuzaki merged 2 commits from upstream-pr/16627 into main 2026-11-12 13:55:41 +00:00
DonRyuzaki commented 2026-11-07 10:32:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-07T10:32:01Z.


What

Implement FT_Set_Default_Properties (NID iuebdW9Mi0U) for a guest FreeType library. The bundled build reads FREETYPE_PROPERTIES from AnyPS5's guest libc environment, parses bounded assignments, and applies them through bundled FreeType 2.15.0. The previous placeholder always threw.

Console signature and behavior are unmeasured. A null library with a guest property still throws. Optional system-dependency builds throw when a guest property is present because the string setter is not public. These limits are recorded in technical debt; no title unblock or full library coverage is claimed.

Rebased on upstream main 857064e343252f93d49a6bb682f1fad8f0863306 at head a96f542c00e55abfd528a0bbfba3f4a3677b1883. Conflict resolution preserved the already merged FT_Get_Var_Axis_Flags implementation and replaced only the default-properties placeholder.

Tested

  • git diff --check origin/main...HEAD and tools/check_conventions.py --base origin/main passed. core/libs/tests/test_public_headers.py --audit-only passed: 407 libraries, 34,276 exports with unique declarations and umbrella coverage.
  • On WSL2 Ubuntu, clean upstream 857064e completed the full libs target (1,031 build steps). With this PR's five changed files overlaid at head a96f542, libfreetype and guest_legacy_freetype_face_settings_tests built with two compiler jobs. The NID patcher accepted libfreetype.prx. guest_legacy_freetype_face_settings passed three repeated runs (3/3). Build, patch and CTest logs are preserved locally. This was a focused PR-head Linux build over a full-base library build; the relinker and Windows runtime were not rebuilt on this head.
  • Historical Windows validation on old head 71759b392c19cf2f03393c80cb225ff2f18b29bc changed truetype:interpreter-version from 40 to 35 through the guest environment while the host held a conflicting value. JJenkx separately reported three passing Windows runs on that old head merged onto main 502288c2cf. These results are not validation of the new head.
  • Connected GitHub search found no other open PR for FT_Set_Default_Properties. #16632 owns distinct FT_Error_String (NID boXwTAWsas0) but shares Export.cpp and the FreeType debt file; whichever merges second may need another textual rebase. The old head's Build, Emscripten and Progress report checks passed; new CI is pending.

No console, retail title, or system-dependency build test is claimed.

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:5200702987 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16627). Originally posted by [DonRyuzaki](https://github.com/DonRyuzaki) on 2026-11-07T10:32:01Z. --- ### What Implement `FT_Set_Default_Properties` (NID `iuebdW9Mi0U`) for a guest FreeType library. The bundled build reads `FREETYPE_PROPERTIES` from AnyPS5's guest libc environment, parses bounded assignments, and applies them through bundled FreeType 2.15.0. The previous placeholder always threw. Console signature and behavior are unmeasured. A null library with a guest property still throws. Optional system-dependency builds throw when a guest property is present because the string setter is not public. These limits are recorded in technical debt; no title unblock or full library coverage is claimed. Rebased on upstream `main` `857064e343252f93d49a6bb682f1fad8f0863306` at head `a96f542c00e55abfd528a0bbfba3f4a3677b1883`. Conflict resolution preserved the already merged `FT_Get_Var_Axis_Flags` implementation and replaced only the default-properties placeholder. ### Tested - `git diff --check origin/main...HEAD` and `tools/check_conventions.py --base origin/main` passed. `core/libs/tests/test_public_headers.py --audit-only` passed: 407 libraries, 34,276 exports with unique declarations and umbrella coverage. - On WSL2 Ubuntu, clean upstream `857064e` completed the full `libs` target (1,031 build steps). With this PR's five changed files overlaid at head `a96f542`, `libfreetype` and `guest_legacy_freetype_face_settings_tests` built with two compiler jobs. The NID patcher accepted `libfreetype.prx`. `guest_legacy_freetype_face_settings` passed three repeated runs (3/3). Build, patch and CTest logs are preserved locally. This was a focused PR-head Linux build over a full-base library build; the relinker and Windows runtime were not rebuilt on this head. - Historical Windows validation on old head `71759b392c19cf2f03393c80cb225ff2f18b29bc` changed `truetype:interpreter-version` from 40 to 35 through the guest environment while the host held a conflicting value. [JJenkx separately reported](https://github.com/boykopovar/AnyPS5/pull/16627#issuecomment-6705693121) three passing Windows runs on that old head merged onto main `502288c2cf`. These results are not validation of the new head. - Connected GitHub search found no other open PR for `FT_Set_Default_Properties`. #16632 owns distinct `FT_Error_String` (NID `boXwTAWsas0`) but shares `Export.cpp` and the FreeType debt file; whichever merges second may need another textual rebase. The old head's Build, Emscripten and Progress report checks passed; new CI is pending. No console, retail title, or system-dependency build test is claimed. ### 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!16627
No description provided.