Skip to content

Commit

Permalink
Correct the capitalisation of the png tag (#740)
Browse files Browse the repository at this point in the history
See
googlefonts/fontations#1167 (comment)

Should make linebender/xilem#420 work.

Co-authored-by: Laurenz Stampfl <[email protected]>
  • Loading branch information
DJMcNab and LaurenzV authored Nov 22, 2024
1 parent 9819261 commit 7e4a56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vello/src/scene/bitmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7e4a56e

Please sign in to comment.