Skip to content

feat(libSceFreeType): configure scalar and darkening properties - #10178

Merged
oneandonlydean merged 6 commits into
boykopovar:mainfrom
santhoshkumar-dev:codex/freetype-module-properties
Oct 27, 2026
Merged

oneandonlydean merged 6 commits into
boykopovar:mainfrom
santhoshkumar-dev:codex/freetype-module-properties

Conversation

@santhoshkumar-dev

@santhoshkumar-dev santhoshkumar-dev commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement FT_Property_Get (8fAMdZCnewA) and FT_Property_Set (LsB538+IPrE) for 15 module/property pairs with fixed-width values: truetype interpreter-version; cff/type1/t1cid hinting-engine, random-seed, no-stem-darkening and darkening-parameters; autofitter no-stem-darkening and darkening-parameters. Values are copied through aligned native locals as 32-bit signed/unsigned words, one-byte booleans or eight 32-bit integers. Getters copy only successful results, preserving output on error. Settings belong to the actual native library, not process-global emulated state.

Other property pairs, including face-pointer records and SVG callbacks, throw before inspecting their value. Native errors are retained for supported pairs, including the write-only random-seed getter. Console signatures/property availability/backend equivalence are unverified and recorded in debt. Names/NIDs follow the PS5 inventory; types and behavior follow pinned ftdriver.h, ftobjs.c, ftpsprop.c and the native driver property services.

Each implemented export is declared once in the canonical public API, included by the implementation and tests. The branch preserves the latest upstream PFR APIs and all merged FreeType features.

The named OT-provider import-resolution helpers also have one declaration each in the shared public API already reachable from the OT umbrella. Export.cpp includes that header. Their existing zero-argument placeholder signatures, explicit NID aliases and throwing behavior are unchanged; this does not establish the console prototypes.

The OT debt paragraph still overlaps #10897. Proposed documentation order: these helper-declaration updates first, then the validation PR retaining the generic pending-helper paragraph and its identified validation names. This order awaits the other author's confirmation; no code or build dependency is required.

The adapter belongs to physical libSceFreeType. Same-NID inventory stubs in the distinct physical libSceFreeTypeOl and libSceFreeTypeOt providers remain throwing helpers.

Tested

Submitted and tested head 0fd587337a9a6f0aa52821283d8a2caa0ae0bbce, including upstream main 48c160c58b589157ebd94ebd53736a182f8303bf.

Windows 11 x64 / WinLibs GCC 15.2.0 r7 and local Ubuntu 24.04.1 x86-64 under WSL2 / GCC 13.3.0 / glibc 2.39: Ninja Release, bundled dependencies, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF. On each platform the complete libs target and selected test executables build, and 70/70 CTests pass, zero skips: the public-header audit, all 64 public-header compilation batches and 5 focused runtime tests. The new upstream JPEG XR and updated SPIR-V dependencies use their pinned submodule commits. Both normal-symbol and actual packaged-NID modes run alongside the base/charmap checks and packaged-library loader.

The initial Windows header audit hit its 30-second timeout; the unchanged head then passed the complete 70-test selection with the original timeouts.

Final upstream recheck: 88795ed44801fa719eb2df990cbe1f11a1f9bd81 merges cleanly; no FreeType/LibreSSL production, shared-header, test-registration or debt changes appeared after the tested base. Results remain pinned to the exact submitted head and its stated base.

Conventions, whitespace and all 15 pairwise merge checks across the six maintained PRs pass. Open/closed/merged history was rechecked; no replacement implementation was found. No title or physical-console execution is claimed.

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

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Progress report (88795ed → 0fd5873)

📉 System libraries: 51.09% (-0.01%, +2 declared functions)

🆕 2 declared as stubs
Library Name
libSceFreeType FT_Property_Get_nid_postfix
libSceFreeType FT_Property_Set_nid_postfix

Changed libraries (implemented exports)

Library Before After Change
libSceFreeType 61/62 (98.39%) 61/64 (95.31%) -3.07 pp

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the exact submitted head a3640ce984124500c427f785cae5d18f5e0d32e3. The adapters use fixed-width native locals before copying to guest buffers, preserve output on native errors, and keep property changes attached to the supplied FreeType library. The tests exercise supported properties against native FreeType across two libraries, unaligned buffers, exact copy widths, error preservation, and unsupported pointer/callback pairs. Eligibility, conventions, intake, labels and report checks pass; hosted product build jobs were skipped by repository path policy. The PR reports complete Windows and Linux library builds plus 5/5 focused tests on both. I did not independently reproduce those full builds locally.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 9465 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10582 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10591 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10593 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10594 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10598 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10600 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10601 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10604 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10606 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10609 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10611 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10613 docs/dev/debt/libSceFreeTypeOt.md L7
PR 10897 docs/dev/debt/libSceFreeTypeOt.md L7
PR 11426 docs/dev/debt/libSceFreeTypeOt.md L6-7

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@santhoshkumar-dev Please remove GuestFreeTypeModuleProperties.cpp:84–96’s Reject assertions and their calls at :147–151 for unsupported property get/set paths. ModuleProperties.cpp routes those properties to NotImplemented; the tests should not pin unimplemented behaviour. Retain supported properties, exact-width and unaligned input/output checks, error preservation and independent-library coverage, then rerun both module-property tests.

@santhoshkumar-dev

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Declare both property exports once in the canonical public API and include it in the implementation and tests. Remove the unsupported-property Reject helper and its assertions; retain supported pairs, native errors, unaligned buffers, exact widths, output preservation and independent libraries.

Updated head: f6e523db3a82f8000987d64b2536621b42c9a6d7; refreshed base: d5e493883f82816d212f734e135a45e88a2e05eb. Windows complete libs plus selected test executables built; local Ubuntu/WSL2 complete libs build pass. On each platform, 70/70 CTests pass with zero skips: public_headers, all 64 compile batches, and 5 runtime tests. Identified OT-provider placeholders retain their original NID aliases and throwing behavior.

Overlap note: #10897 implements different validation exports; the remaining shared change is the OT debt paragraph. When combining the branches, retain the generic pending-helper description and both sets of identified names. There is no function or build dependency.

@santhoshkumar-dev

Copy link
Copy Markdown
Contributor Author

Refreshed this branch onto main 48c160c58b589157ebd94ebd53736a182f8303bf without rewriting the published history. New head: 0fd587337a9a6f0aa52821283d8a2caa0ae0bbce. All merged PFR/FreeType, LibreSSL and dependency changes are preserved.

Local Windows/WinLibs GCC 15.2 and Ubuntu/WSL2/GCC 13.3 complete libs builds pass. Each platform passes 70/70 selected CTests, zero skips: public_headers, all 64 header compile batches and 5 runtime cases. Conventions and whitespace pass; the six maintained branches also merge cleanly in all 15 pairings.

Applied the public-declaration clarification from #10897 to these named OT helpers too: sceFreeTypeOtPropertyGet_nid_no_patch, sceFreeTypeOtPropertySet_nid_no_patch. They are declared once in the shared API reachable through the OT umbrella, and Export.cpp includes it. Existing placeholder signatures, NID aliases and throwing behavior are preserved; no unsupported-path assertions were added.

@HSNADM The remaining overlap with #10897 is the OT debt paragraph. Proposed order: these helper-declaration updates first, followed by your validation PR retaining the generic pending-helper paragraph and your identified validation names. Please confirm whether that documentation order works; there is no code/build dependency.

@oneandonlydean
oneandonlydean merged commit f97469d into boykopovar:main Oct 27, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants