mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
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:
1 parent
3b38a53db0
commit
a80a42725f
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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); })
|
||||
;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user