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

[Feature Request]: Add flag to disable inclusion of woff fonts #17941

Open
1 task done
adamalston opened this issue Oct 31, 2024 · 3 comments
Open
1 task done

[Feature Request]: Add flag to disable inclusion of woff fonts #17941

adamalston opened this issue Oct 31, 2024 · 3 comments

Comments

@adamalston
Copy link
Contributor

The problem

Some users have specific requirements around font formats, such as only needing woff2 fonts due to performance or compatibility considerations. Currently, both woff and woff2 fonts are included by default, which can lead to unnecessary file sizes and slower loading times for users who don’t need both formats. This feature aims to provide greater flexibility by allowing users to disable woff font inclusion if they don't require it.

The solution

Introduce a flag (e.g., $font-disable-woff) that, when enabled, excludes woff fonts from being emitted. This flag would help reduce file size and improve performance for those who only need woff2. Ideally, the flag would be a boolean configuration option in the settings or build script, allowing users to toggle woff font inclusion based on their specific needs.

Examples

No response

Application/PAL

DataPower

Business priority

None

Available extra resources

No response

Code of Conduct

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

@aagonzales
Copy link
Member

@adamalston We are curious, how do you know which font package the user will need? How do you determine which to toggle on/off?

@AlanGreene
Copy link
Contributor

AlanGreene commented Nov 25, 2024

fyi: .woff files were removed as part of #17683 which was released in 11.71

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

No branches or pull requests

3 participants