feat(libfontconfig): support collection values and pattern filtering #16564
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16564"
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-07T05:37:30Z.
What
A pattern can now store and return character sets and language sets. Character sets retain their shared identity; language sets are copied at insertion and on pattern copies.
FcPatternFiltercopies each selected property's values in their original order. Repeating a property name appends its values again. A null object set duplicates the pattern. Getters leave the caller's output unchanged on missing properties, invalid indexes, and type mismatches.The contracts follow Fontconfig 2.15.0 at
72b9a48, particularlyFcValueSave,FcValueEqual, andFcPatternFilter. The console ABI and version equivalence remain unverified and are recorded in the library's debt.Tested
Ubuntu 24.04.4 LTS, x86-64, GCC 13.3, Release, on
c45ed07952.cmake --build build --target guest_fontconfig_tests guest_fontconfig_sets_tests guest_fontconfig_objects_tests nid_patcher -j3andctest --test-dir build -R '^guest_fontconfig($|_sets$|_objects$)' --output-on-failure: 3 passed. Regression cases cover shared character-set lifetime, independent language-set copies, equality, removal, filter order, and unchanged lookup outputs on errors.c48f200127and stopped atFcPatternAddCharSet not implemented.python3 core/libs/tests/test_public_headers.py --audit-onlyand the conventions checks againstorigin/mainandupstream/mainpassed.The branch merges cleanly with the scanned
mainsnapshot at3c2a9ca8f5. The overlap tool checked 1,781 open PRs and could not complete two comparisons because those branches conflict withmain. I inspected both pinned diffs. #14212 changes Fontconfig debt formatting and counts. #15294 changesFcConfigCreate,FcConfigReference,FcConfigDestroy, and the debt file. Neither implements these pattern exports.No console or title 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)