Skip to content

Commit 6984523

Browse files
committed
Warn about decomposing components in variable font
1 parent b2183b2 commit 6984523

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

profile-universal/src/checks/transformed_components.rs

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ pub(crate) fn decompose_components_impl(
138138
decompose_order: &[GlyphId],
139139
) -> FixFnResult {
140140
let f = fixfont!(t);
141+
if f.has_table(b"gvar") {
142+
return Err("Cannot (yet) decompose nested components in variable fonts".to_string());
143+
}
141144
let mut new_font = FontBuilder::new();
142145
let mut builder = GlyfLocaBuilder::new();
143146
let loca = f

0 commit comments

Comments
 (0)