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

Bundle a ttf for Arcade's default font #1135

Open
einarf opened this issue Mar 27, 2022 · 5 comments
Open

Bundle a ttf for Arcade's default font #1135

einarf opened this issue Mar 27, 2022 · 5 comments

Comments

@einarf
Copy link
Member

einarf commented Mar 27, 2022

Right now Arcade's pyglet based text are using the following default: ("calibri", "arial"). This will just scan the system fonts and find something that matches. This will give the user fairly different looks depending on the system and OS.

Instead we should look into bundling a ttf file with a default font for Arcade. This should be something fairly close to the current default font (s):

In a game setting this makes a lot more sense. System fonts are more for generic applications.

We can and probably should add an ATTRIBUTIONS.md file in the root of the repo anyway. That might be needed here. It should also be added to the package in MANIFEST.in

@pushfoo
Copy link
Member

pushfoo commented Mar 28, 2022

This can probably be handled quickly using #1011 or a similar approach, and is arguably a duplicate of that ticket. There are metric compatible fonts for Arial, so we can get cross-platform Arial equivalents fairly easily. It may also be a good idea to include license files for the fonts as well as README files in their respective folders.

@einarf
Copy link
Member Author

einarf commented Mar 28, 2022

Budle a default font and define it in arcade.fonts.DEFAULT + add all the kenney font names we are loading on startup.

For game development in general it's all about custom fonts.

@einarf einarf modified the milestones: 2.7, 3.0 Apr 3, 2022
@pushfoo
Copy link
Member

pushfoo commented Apr 5, 2022

Update / recap of today's discord discussion:

This issue requires the following to resolve:

  1. Decide which languages / character sets are a priority to support
  2. Choose a font that includes the needed characters and has a favorable license (probably SIL Open Font, Public domain, or Apache)
  3. Triple check the licensing situation, possibly with a legal professional

I started addressing item 1 in the doc analytics channel today.

Item 2 has been in progress on-and-off since I filed #1011. Although the Liberation font family seemed like the best bet, there could be issues with it:

  • Earlier versions use a GPL variant that might be infectious if bundled with software
  • Liberation 2.0.0+ fonts appear use the SIL Open Font license, which should be ok
  • It's unclear what languages Liberation fonts support

@eruvanos
Copy link
Member

eruvanos commented Aug 30, 2024

We have Kenny fonts bundled and I set them as default for buttons, (and they are shown if loaded)

Should we have another font, that is always be loaded?

We could pick a few fonts from the following pages (with a proper license) and then let the community vote:

@pushfoo
Copy link
Member

pushfoo commented Aug 30, 2024

As I've said before: https://github.com/liberationfonts/liberation-fonts

They're:

  1. SIL Open Font Licensed
  2. Metric comptatible with the fonts they replace
Metric-compatible replacement Original
Liberation Sans Arial
Liberation Serif Times New Roman
Liberation Mono Courier New

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants