fix(libcairo): propagate FreeType error font faces #27755
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27755"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by bipinkrish on 2026-11-27T08:06:26Z.
What
Carry the pinned Cairo backend’s file-not-found and no-memory font faces through the guest font-face bridge. A missing file in a Fontconfig pattern now gives
cairo_scaled_font_createan error font and sets the same error on a healthy context passed tocairo_set_font_face. The error objects retain their guest identity and require no allocation.Tested
On Ubuntu 24.04.4 x86-64, the new missing-file regression failed on the base commit with
cairo_scaled_font_create not implemented. All 41 tests inctest --test-dir build -R '^guest_cairo_' --output-on-failurepassed with the change. The test checks the scaled font status, the context error through its target, and preservation of the first context error. A separate program using Cairo 1.18.0 returnedCAIRO_STATUS_FILE_NOT_FOUND(18) for the face, scaled font and context.python3 tools/check_conventions.pypassed. The standalonetools/debt_fold.py --checkreports the same two conflicting shader debt fragments on both the base and the branch.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T09:03:23Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review evidence supports merging.
What I ran
Reviewed head
fa082443ce4d05d3e279571f99d9fcfee21057b2using the prepared diff andrepo_read.pysource reads. No test commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
core/libs/prx/libcairo/FontFace.cpp,core/libs/tests/GuestCairoFtFontFace.cpp, anddocs/dev/debt/changes/feat-libcairo-font-pipeline.mdwere read in full.files.jsonwas not available as a review-folder document; the reader's file listing confirms all three changed files are included and read. The Cairo backend source, build, tests, and console behavior were not independently verified. The description reports 41 passing guest Cairo tests and a standalone Cairo 1.18.0 check; these were not run in this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-27T14:29:29Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
fa082443ce:tools/check_conventions.pypassed.guest_cairo_ft_font_face_testsbuilt cleanly.guest_cairo_ft_font_face):core/libs/prx/libcairo/FontFace.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-28T05:06:23Z.
Review: APPROVED
Checked head
fa082443ce. All on Windows 11 with WinLibs GCC 15.2 (Release), applied tomaina163d4b886together with #27930, #27929, #27926, #27925, #27924, #27923, #27922, #27901, #27828, #27771, #27748, #27682, #27765.tools/check_conventions.py --headandtools/debt_fold.py --checkpassed and the full build succeeded.guest_cairo_ft_font_facepasses. In the full CPU suite (5,120 tests) the only failures are unrelated:windows_read_trap_unknownfails onmaintoo (fixed in #28028).frame_capture_minimize,jpeg_external_toolchainandguest_pthread_mutex_contentionare timeouts under load; they pass when run on their own.guest_audio_in_capturepasses 20/20 onmainand with #27922.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T08:43:58Z.
Review: COMMENTED
The Linux
guest_cairo_ft_font_faceCTest passed with the patch. The fixture checks that a FreeType failure yields a Cairo error face with the expected status, alongside the normal FreeType font-face path.AI-assisted: yes.