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

Font bundling approach #13255

Open
nijel opened this issue Dec 11, 2024 · 3 comments
Open

Font bundling approach #13255

nijel opened this issue Dec 11, 2024 · 3 comments
Labels
enhancement Adding or requesting a new feature. ux Issues related to user experience.

Comments

@nijel
Copy link
Member

nijel commented Dec 11, 2024

Describe the problem

I would rather not complicate #13093, but there are still some issues with our font bundling:

Describe the solution you would like

I'm not sure if webpack is the solution here, as the fonts are not really available as yarn packages.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

@nijel nijel added enhancement Adding or requesting a new feature. ux Issues related to user experience. labels Dec 11, 2024
@meel-hd
Copy link
Contributor

meel-hd commented Dec 11, 2024

It would be simple if we defined the font families in css ourselves instead of depending on a package. All we would need is the font files. This way we will insure simplicity, control, and be able to include only what we need keeping storage usage minimal. The sacrifice would be losing auto updates with yarn but I don't think fonts change that much. Plus source-code-pro, source-sans, and kurnito are pretty mature by this time to have weird behavior.

@nijel
Copy link
Member Author

nijel commented Dec 13, 2024

I thought of that as well, together with some automation to extract needed font files.

@nijel
Copy link
Member Author

nijel commented Dec 19, 2024

I've created fonts download in the website repository in WeblateOrg/website#2413, so maybe we could use it here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature. ux Issues related to user experience.
Projects
None yet
Development

No branches or pull requests

2 participants