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

Fix issues with font downloading and zombie refs #118

Merged
merged 4 commits into from
May 15, 2024

Conversation

tmdvs
Copy link
Member

@tmdvs tmdvs commented May 15, 2024

We have an issue where by Google Fonts have changed the URL to font downloads. This prevents fonts from being correctly embedded in Sketch documents.

At the same time we have an issue with zombie references. This fix attempts to patch both and unblock future work.

PS I've also bumped some deps for stabilities sake

Fixes: #119

@tmdvs tmdvs force-pushed the fix/improved-font-errors-and-zombie-refs branch 3 times, most recently from 7360c6b to d3f380d Compare May 15, 2024 11:21
@tmdvs tmdvs force-pushed the fix/improved-font-errors-and-zombie-refs branch 2 times, most recently from 72f5c4f to a40bed0 Compare May 15, 2024 15:08
@tmdvs tmdvs marked this pull request as ready for review May 15, 2024 15:10
@tmdvs tmdvs requested a review from arseniocosta1 May 15, 2024 15:13
@tmdvs tmdvs force-pushed the fix/improved-font-errors-and-zombie-refs branch 4 times, most recently from 9380f8c to 7f5fc2d Compare May 15, 2024 15:31
@tmdvs tmdvs force-pushed the fix/improved-font-errors-and-zombie-refs branch from 7f5fc2d to 5301780 Compare May 15, 2024 15:33
Copy link
Member

@arseniocosta1 arseniocosta1 left a comment

Choose a reason for hiding this comment

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

Nice work Tim 👏

Comment on lines +66 to +70
except Exception as e:
if isinstance(e, font.FontNotFoundError) or (
isinstance(e, HTTPError) and e.code == 404
):
logging.warning(f"Could not find font {font_descriptor} via Google Fonts")
Copy link
Member

Choose a reason for hiding this comment

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

praise: 👨‍🍳 ⭐

@tmdvs tmdvs merged commit 52ffce0 into main May 15, 2024
4 checks passed
@tmdvs tmdvs deleted the fix/improved-font-errors-and-zombie-refs branch May 17, 2024 09:09
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.

Fonts no longer downloading from Google Fonts
2 participants