Repository navigation
C API: expose AAT feature and selector metadata - #525
Merged
Merged
Conversation
7 of 12 tasks
dfrg
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chromium probes AAT small-caps support through feat-table metadata even when HarfRust performs shaping. Add
hr_aat_layout_get_feature_typesandhr_aat_layout_feature_type_get_selector_infos, their ABI types and feature/selector constants, and a generatedhr-hb-aat.hcompatibility header. The combined header includes the AAT aliases for existing consumers.Queries use read-fonts, support callback faces, and preserve pagination/null-query conventions. Exclusive selectors disable to the global default selector; non-exclusive selectors expose enable/disable pairs and report no default index.
Stacked on #524. Completes the 12 uncovered Chromium metadata functions listed in #520 together with #521, #523, and #524; Chromium build/behavioral integration work remains.
Validation: 146 C API tests; 116,180 metadata comparisons against HarfBuzz 14.5.1 across 500 faces, including synthetic exclusive/non-exclusive AAT features; Clippy 1.99; Rust 1.85 checking; GCC/Clang C99 linking and C++17 header checks, including selector struct layout.
The Chromium build experiment additionally exposed signed integer macros in Blink's unsigned feature-vector comparisons. The generated AAT constants now retain unsigned literal types, with a C++11 CI regression check. The updated 146 C API tests, Clippy, and C++ check pass locally.