Skip to content

use goembed to bundle fonts into the output binary#44

Open
robbyt wants to merge 1 commit intoNomadcxx:masterfrom
robbyt:rterhaar/embed-fonts
Open

use goembed to bundle fonts into the output binary#44
robbyt wants to merge 1 commit intoNomadcxx:masterfrom
robbyt:rterhaar/embed-fonts

Conversation

@robbyt
Copy link
Contributor

@robbyt robbyt commented Nov 20, 2025

This change adds a new file that allows loading fonts at runtime directly from go instead of loading external files from a local file path.

It's currently not being used, but I will send a follow-up PR if you're interested to supplement the font loading system to try loading from the goembed fs before loading from disk.

@Nomadcxx
Copy link
Owner

Bundling fonts would definitely solve some headaches with external font files. The embed setup looks good, but you are right since nothing is using assets.Fonts yet, would need to know your plan to integrate. Just want to see the complete picture of how font loading will work with the embedded files. -cheers RAM

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.

2 participants