diff --git a/src/layout/data.rs b/src/layout/data.rs index ac6ca617..640e88dd 100644 --- a/src/layout/data.rs +++ b/src/layout/data.rs @@ -248,7 +248,10 @@ impl LayoutData { let metrics = shaper.metrics(); let cluster_range = self.clusters.len()..self.clusters.len(); let coords_start = self.coords.len(); - self.coords.extend_from_slice(shaper.normalized_coords()); + let coords = shaper.normalized_coords(); + if coords.iter().any(|coord| *coord != 0) { + self.coords.extend_from_slice(coords); + } let coords_end = self.coords.len(); let mut run = RunData { font_index,