From 7e4a56edff4a2f53aec9f5ba14a319d8d914f837 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:53:09 +0000 Subject: [PATCH] Correct the capitalisation of the `png ` tag (#740) See https://github.com/googlefonts/fontations/issues/1167#issuecomment-2387032814 Should make linebender/xilem#420 work. Co-authored-by: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> --- vello/src/scene/bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vello/src/scene/bitmap.rs b/vello/src/scene/bitmap.rs index d3af0b68..4c158032 100644 --- a/vello/src/scene/bitmap.rs +++ b/vello/src/scene/bitmap.rs @@ -162,7 +162,7 @@ impl<'a> BitmapStrike<'a> { match &self.0 { StrikeKind::Sbix(sbix, metrics) => { let glyph = sbix.glyph_data(glyph_id).ok()??; - if glyph.graphic_type() != Tag::new(b"PNG ") { + if glyph.graphic_type() != Tag::new(b"png ") { return None; } let glyf_bb = metrics.bounds(glyph_id).unwrap_or_default();