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: use bin packing instead of fixed spacing. #4

Open
paulhoux opened this issue Jul 27, 2016 · 1 comment
Open

Feature request: use bin packing instead of fixed spacing. #4

paulhoux opened this issue Jul 27, 2016 · 1 comment

Comments

@paulhoux
Copy link
Contributor

paulhoux commented Jul 27, 2016

More glyphs would fit on a single texture if bin packing were used. For this kind of stuff, offline bin packing can be used when adding many characters at once (or when doing an optimization step) and online bin packing can be used when adding one character at a time.

I happen to have a bin packing implementation ready for use, let me know if you're interested. It's not perfect and starts to slow down when packing >1000 glyphs, but it's a start. This will complicate texture creation, but only marginally.

-Paul

@paulhoux
Copy link
Contributor Author

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

1 participant