Repository navigation
feat(libSceFreeType): configure scalar and darkening properties - #10178
oneandonlydean merged 6 commits into
Conversation
Progress report (88795ed → 0fd5873)📉 System libraries: 51.09% (-0.01%, +2 declared functions) 🆕 2 declared as stubs
Changed libraries (implemented exports)
|
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
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.
|
|
@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. |
|
@oneandonlydean Declare both property exports once in the canonical public API and include it in the implementation and tests. Remove the unsupported-property Updated head: 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. |
|
Refreshed this branch onto main 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: @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. |
What
Implement
FT_Property_Get(8fAMdZCnewA) andFT_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 physicallibSceFreeTypeOlandlibSceFreeTypeOtproviders remain throwing helpers.Tested
Submitted and tested head
0fd587337a9a6f0aa52821283d8a2caa0ae0bbce, including upstream main48c160c58b589157ebd94ebd53736a182f8303bf.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 completelibstarget 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:
88795ed44801fa719eb2df990cbe1f11a1f9bd81merges 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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)