Skip to content

Comments

feat: use fonts from weblate-fonts package#3358

Merged
nijel merged 1 commit intomainfrom
fonts
Jan 20, 2026
Merged

feat: use fonts from weblate-fonts package#3358
nijel merged 1 commit intomainfrom
fonts

Conversation

@nijel
Copy link
Member

@nijel nijel commented Jan 20, 2026

This simplifies packaging.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request migrates font assets from a locally managed vendor directory to the external weblate-fonts package, simplifying packaging and dependency management.

Changes:

  • Replace local font CSS files with references to the weblate-fonts package
  • Add weblate-fonts==2026.1 dependency to requirements.txt and register the app in Django settings
  • Remove font download/management scripts and local font files

Reviewed changes

Copilot reviewed 5 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
weblate_web/templates/base.html Updates CSS link paths from vendor/font-source/ to weblate_fonts/
weblate_web/static/pdf/fonts.css Updates TTF font paths for PDF rendering to use weblate_fonts/source-sans/ttf/
weblate_web/settings.py Adds weblate_fonts to INSTALLED_APPS
requirements.txt Adds weblate-fonts==2026.1 dependency
scripts/update-fonts Removes font download script (no longer needed)
scripts/fonts.toml Removes font configuration file (no longer needed)
weblate_web/static/vendor/font-source/* Removes locally bundled font files and CSS

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.19%. Comparing base (1a42ec4) to head (b3f0189).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3358   +/-   ##
=======================================
  Coverage   81.19%   81.19%           
=======================================
  Files          64       64           
  Lines        6765     6765           
  Branches      702      702           
=======================================
  Hits         5493     5493           
  Misses       1013     1013           
  Partials      259      259           
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nijel nijel merged commit 0e27e1f into main Jan 20, 2026
42 checks passed
@nijel nijel deleted the fonts branch January 20, 2026 13:16
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.

1 participant