Fix depend code for wrapped format structs

After rebasing onto main, the depend code needs to use format.v
instead of format directly, due to main's "Wrap formats in struct"
change (346b8dcf9).

Updated:
- hb-ot-cmap-table.hh: _.u.format == 14 → _.u.format.v == 14
- COLR.hh: switch (u.format) → switch (u.format.v)
This commit is contained in:
Skef Iterum committed 2026-02-05 19:11:40 -08:00
1 parent 3b38a53db0
commit a80a42725f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1757,7 +1757,7 @@ struct ClipBox
#ifdef HB_DEPEND_API
void dependv1 (hb_colrv1_depend_context_t* c) const
{
switch (u.format) {
switch (u.format.v) {
case 2: u.format2.dependv1 (c);
default:return;
}
+1 -1
View File
@@ -1950,7 +1950,7 @@ struct cmap
+ hb_iter (encodingRecord)
| hb_map (&EncodingRecord::subtable)
| hb_map (hb_add (this))
| hb_filter ([&] (const CmapSubtable& _) { return _.u.format == 14; })
| hb_filter ([&] (const CmapSubtable& _) { return _.u.format.v == 14; })
| hb_apply ([=] (const CmapSubtable& _) { _.u.format14.depend (depend_data); })
;
}