Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the capitalisation of the png tag #740

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Nov 22, 2024

See googlefonts/fontations#1167 (comment)

Co-Authored-By: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>
@@ -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 ") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to note some provenance for this tag. Perhaps https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6sbix.html

Copy link
Member Author

@DJMcNab DJMcNab Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The canonical form of this code doesn't live here; I've intentionally touched it as little as possible. Instead, it can be found at https://github.com/googlefonts/fontations/blob/skrifa-bitmaps/skrifa/src/bitmap.rs.

The place to record this feedback is probably in the first linked issue in the PR.

@waywardmonkeys
Copy link
Contributor

(I think we need a lot more provenance links in general!)

@DJMcNab DJMcNab added this pull request to the merge queue Nov 22, 2024
Merged via the queue into linebender:main with commit 7e4a56e Nov 22, 2024
17 checks passed
@DJMcNab DJMcNab deleted the appngle branch November 22, 2024 13:58
@waywardmonkeys
Copy link
Contributor

This needs a changelog entry.

@waywardmonkeys waywardmonkeys added this to the Vello 0.4 Release milestone Nov 22, 2024
DJMcNab added a commit to DJMcNab/vello that referenced this pull request Nov 22, 2024
If I would evaluate the CHANGELOG before the next release, I would reach the decision that linebender#740 doesn't need a changelog entry
However, @waywardmonkeys believes that it does, so the only viable way for this to end up in the changelog is to do it now
@DJMcNab DJMcNab mentioned this pull request Nov 22, 2024
DJMcNab added a commit to DJMcNab/vello that referenced this pull request Nov 22, 2024
If I would evaluate the CHANGELOG before the next release, I would reach the decision that linebender#740 doesn't need a changelog entry
However, @waywardmonkeys believes that it does, so the only viable way for this to end up in the changelog is to do it now
github-merge-queue bot pushed a commit that referenced this pull request Nov 24, 2024
If I would evaluate the CHANGELOG before the next release, I would reach
the decision that #740 doesn't need a changelog entry However,
@waywardmonkeys believes that it does, so the only viable way for this
to end up in the changelog is to do it now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants