Skip to content

Commit

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

Co-Authored-By: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>
  • Loading branch information
DJMcNab and LaurenzV committed Nov 22, 2024
1 parent 9819261 commit cd1e529
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 cd1e529

Please sign in to comment.