diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index 30e459b96..2967e8096 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -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; } diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 4a0866d2e..284de104b 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -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); }) ; }