Repository navigation
test(libSceFont): cover vertical layout scaling - #12018
Conversation
|
A Windows run, since the description lists Linux only. Head Result: AI-assisted: yes (Claude Code). |
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Tests: AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
9c03b2f to
7cfa9f1
Compare
THEMANnt
left a comment
There was a problem hiding this comment.
Reviewed 7cfa9f1f7ac668cbb6fae8c5186f31651aaaee8b against 750cf6cf487f948017295b1f3717af6f886f0f85. The synthetic font contains explicit vertical-metric tables and bounds. The fixture covers null/invalid handles, output clearing, pixel-versus-DPI behavior, point scaling, inherited instance layout and allocator cleanup. Its new CMake target has the runtime path and timeout. No actionable finding in this scoped test review.
Windows/GCC 15.3 Release: configured and built the registered target from pinned sources; focused CTest: 1 passed, 0 skipped. Checked that the fixture assertions remain active in Release. The added target is absent from the author base; no baseline runtime execution of that new fixture is claimed. Production source and the changed test-registration blocks were source-compared. Matching cached dependency source pins and the existing matching FFmpeg package are used. No game, physical-console or GPU validation is claimed.
Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.
7cfa9f1 to
296a387
Compare
|
@THEMANnt thanks for the scoped review. The branch is refreshed onto current |
THEMANnt
left a comment
There was a problem hiding this comment.
Re-reviewed 296a38700598d84360b432c7b1b3eb4f4570391c against merge base 49025cb4362f9eaffe5395c911ef8e769556aa89. The previous CMake conflict is resolved, and the fixture source is byte-for-byte unchanged from my earlier review. No actionable finding in this scoped test review.
Validation: fresh Windows/GCC 15.3 Release configuration and build; guest_font_vertical_layout passed (1/1, 0 skipped). Reviewed the registration, runtime PATH and 30-second timeout, and checked the vertical layout, invalid handles, output clearing, DPI invariance and instance inheritance assertions against the implementation. Checks remain active in Release; git diff --check passed. Production code is unchanged by this PR; no baseline runtime run of the added fixture or physical-console/game test is claimed.
|
Correction to my last comment: the Windows result in Tested is from before the rebase, not from |
What
Cover
sceFontGetVerticalLayoutwith a fixture font that hasvheaandvmtxtables and non-symmetric horizontal bounds. The newguest_font_vertical_layouttest checks the null-layout and invalid-handle results, that a failed call clears the caller's layout, and that a valid call returns a positive column advance, a negative baseline offset and the fixture's zero decoration span.It also checks that the result survives a DPI change at the same scale, changes after a scale change, and matches between a font and an instance opened from it.
This is coverage only; the implementation is unchanged.
Tested
Linux x86_64, GCC, Release. Built
guest_font_vertical_layout_testsand ranctest -R '^guest_font_vertical_layout$'; passed. Conventions, test registration andgit diff --checkpass.guest_font_vertical_layoutand the other 11 libSceFont tests registered from its test sources passed 12/12. Not run on a PS5.guest_font_vertical_layoutandguest_fontpassed in each of 3 runs; the WindowsPATHentry lets the test findlibSceFont.prx.No game was run.
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)