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

Is it possible to add a font to the atlas after font_atlas_end? #58

Open
ronaaron opened this issue Jan 31, 2020 · 7 comments
Open

Is it possible to add a font to the atlas after font_atlas_end? #58

ronaaron opened this issue Jan 31, 2020 · 7 comments

Comments

@ronaaron
Copy link
Contributor

I'm looking to add a font in user code, after the font atlas has been created and baked.

Is there a way to accomplish that?

@ronaaron
Copy link
Contributor Author

ronaaron commented Feb 4, 2020

Anyone?

@dumblob
Copy link
Member

dumblob commented Feb 4, 2020

Not sure I understand it correctly, but what prohibits you to create a new font atlas and bake it at any time?

@ronaaron
Copy link
Contributor Author

ronaaron commented Feb 4, 2020

I guess that's not a problem, but using the GL backends, won't the new atlas when uploaded overwrite the existing one? I haven't tried it, so I've no clue, to be honest.

@dumblob
Copy link
Member

dumblob commented Feb 4, 2020

That might be the case, but even then I fail to see the problem with that (I'm not an expert on that though 😉). Why couldn't you just bake more fonts into one atlas?

@ronaaron
Copy link
Contributor Author

ronaaron commented Feb 4, 2020

When I tried that I don't get anything valid, because the atlas is 'closed' by the end of the baking process. At least, I don't succeed.

@dumblob
Copy link
Member

dumblob commented Feb 4, 2020

There were some people trying to use more fonts with Nuklear and IIRC they succeeded 😉 - anything in the old issue tracker?

@ronaaron
Copy link
Contributor Author

ronaaron commented Feb 4, 2020

I haven't seen anything but maybe I'm not looking in the right way. I'll experiment a bit and see what I can manage.

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

No branches or pull requests

2 participants