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 support for building without bundled fonts #2637

Open
Jacalz opened this issue Nov 11, 2021 · 1 comment
Open

Add support for building without bundled fonts #2637

Jacalz opened this issue Nov 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Jacalz
Copy link
Member

Jacalz commented Nov 11, 2021

Is your feature request related to a problem? Please describe:

Similar to #2636 but for systems like Linux or BSD when you don't wan to bundle fonts because you wan to specify different fonts at runtime. This could be useful for package managers and Linux/BSD distros where they want to globaly define one font instead of bundling it into every binary.

As an example, let's say that we are building FyshOS and each system applications is a Fyne application. We thus have FyneDesk, a clock app, a calculator, a calendar, a contacts app, a weather app and a software center, to name a few. We might want to then set the FYNE_FONT= environment variables globally and avoid many unnecessary megabytes of duplicated fonts.

It could also be useful for people using other languages which simply use different fonts in the first place and thus don't need or care about the bundled fonts.

Is it possible to construct a solution with the existing API?

Might be possible to add build tags.

Describe the solution you'd like to see:

A build tag to build without bundled fonts.

@Jacalz Jacalz added the enhancement New feature or request label Nov 11, 2021
@andydotxyz
Copy link
Member

In theory yes, but I don't think we should support this with only a FYNE_FONT environment fallback. Then applications launched without the env will be unusuable.
So I think we may need to solve the issue of looking up fonts before this makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants