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

Add liberation font family to Arcade #2477

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

pushfoo
Copy link
Member

@pushfoo pushfoo commented Jan 4, 2025

TL;DR: Add Liberation font files per #1011 and #1135 per call with Digi and Eruvanos

Changes

  1. Add the OFL-licensed Liberation font family:
    • It's like a font file limited version of CC: Attribution, Share-Alike for fonts
    • It doesn't spread beyond the font files
  2. Move Kenney fonts into their own folder
  3. Add a loading helper
  4. Fix typos
  5. Add comments

Questions

  1. This doesn't set them as default yet, but should it?
  2. Which ones are we making the "default" Arcade font if any? (Liberation Sans?)

@DigiDuncan
Copy link
Collaborator

I think this PR is fine, but I do like the idea of Liberation Sans being the default font.

@pushfoo
Copy link
Member Author

pushfoo commented Jan 4, 2025

The resources listing is (once again) broken because it assumes a lot about how Arcade is built. I don't have time to fix this tonight and might not in the next few days.

@pushfoo pushfoo force-pushed the add-liberation-font-family branch from f9333db to fe2c7ff Compare January 7, 2025 04:00
* Add Liberation font TTFs (Generic versions of Arial, Courier, and Times)

* Add OFL license in new folder

* Add load function modeled after load_kenney_fonts
* Add Liberation font loading to text drawing examples

* Add comments explaining usage of fonts

* Fix typo (s/bumbled/bundled/)
@pushfoo pushfoo force-pushed the add-liberation-font-family branch from fe2c7ff to 8a88b65 Compare January 10, 2025 00:44
@pushfoo
Copy link
Member Author

pushfoo commented Jan 10, 2025

I've rebased this and I'm looking at an acceptable short-term fix to get 3.0 moving.

"""Loads generic versions of Arial, Courier, and Times New Roman.

The Liberation font family is a permissively-licensed set of built-ins
which should be layout-compatible with popular fonts.
Copy link
Member

Choose a reason for hiding this comment

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

Can we add the names, which should be used to reference the loaded fonts? That was an issue for me with the Kenny fonts.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep. Will do.

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