Skip to content

Conversation

@prudhomm
Copy link
Member

@prudhomm prudhomm commented Dec 8, 2025

Summary

Fix font download issues in v1.3.0.

Problem

  1. Google Fonts URL broken: The fonts.google.com/download URL returns HTML instead of a zip file
  2. urllib doesn't follow redirects properly: GitHub archive URLs require following redirects
  3. Marianne font blocked: French government website uses Cloudflare protection

Solution

  • Switch from urllib to requests library for better redirect and header handling
  • Update Roboto Mono URL to use GitHub archive instead of Google Fonts
  • Add Roboto font as default
  • Move Marianne to optional sources (requires manual download or custom mirror)

Testing

  • All 18 font tests pass
  • Roboto and Roboto Mono download successfully
  • 120/122 total tests pass (2 pre-existing Zotero config env issues)

Closes #12

- Switch from urllib to requests for better redirect handling
- Update Roboto Mono URL to GitHub archive (Google Fonts URL broken)
- Add Roboto font as default
- Move Marianne to optional (Cloudflare blocks automated downloads)

Closes #12
@prudhomm prudhomm force-pushed the 12-fix-font-download branch from 8694dec to 755d78a Compare December 8, 2025 07:39
@prudhomm prudhomm merged commit 92fa2ba into main Dec 8, 2025
6 checks passed
@prudhomm prudhomm deleted the 12-fix-font-download branch December 8, 2025 07:40
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.

Fix font download: use requests library and update URLs

2 participants