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
Please update the version of stb_truetype.h and stb_rect_pack.h in nuklear.h #51
Comments
Thanks for letting us know. There was a similar request and I think the goal was to automatically update them in each run of |
I was going to push to a new branch, but I don't seem to be able to do that. So I'm attaching the modified 'src/nuklear_font.h'. NOTE: There are two functions which in the current version take an nk_allocator, but which have no such thing in the code I merge; I do not understand all the ramifications of not having the allocator, it seems to work as-is on my Linux box. The functions in question are part of the baker:
|
The code does crash on macOS, so apparently the allocator is needed. I was hoping it might be possible to allocate whatever's needed beforehand rather than piecemeal. But I don't know the code, and am relying on you guys. |
Still relying on you guys... any feedback on the need for the allocator? |
I'm still out of time to do reviews. But what caught my eye is that you can't submit a PR - that's weird. Could you please try again (step by step as GitHub doc says)? It would encourage others to look over your changes 😉. |
Pinging again, since I put a PR in just after your last comment. Looking for assistance on that issue, since the ancient TTF support is hindering me. |
@Nielsbishere feel free to review the PR - I'd like to give you commit permission afterwards 😉 |
@ronaaron Someone shares my pain <3 |
Yeah; I hope it gets integrated (with appropriate changes) soon. |
stb_truetype update request appeared several times also in the old Nuklear repo. I think we should move away from making changes to stb_truetype once and forever. Could you @ronaaron change your PR in a way, that there is separate @SairesArt would you want to review the PR (or other PRs)? This would help the project a lot (I'd then give you commit permission 😉). |
That sounds like a good
I was very pleasantly surprised to find nuklear changing repos and being revived again, after some slumber during the past two years. Contributing to nuklear has been on my todo list for quite some time (GLFW OpenGL ES2 demo and ideally an option for SDF text rendering), but never came around to it... so I'll gladly take you up on that offer. Whilst I'm at it, I'll make a fresh new github account (another todo thing), message you this evening for the permissions and review me some PR's this weekend :] |
So I just uploaded a modified version of my ttf branch, which separates both stb files. I had to also play a bit with the packer so that I could get the STB*IMPLEMENTATION if NK_IMPLEMENTATION is defined. I left two "TODO" comments in the code, where I am not sure what to do. |
@SairesArt Here with my new Account to tackle all my Open Source responsibilities :] |
@FrostKiwi Quick proof of ownership via quote reply |
@FrostKiwi greetings and thanks for your interest. Could you please find the culprit for the last unsolved issue described in #53 (comment) ? Then I'll merge the PR and you'll get the commit rights 😉. |
I think this can be closed as the PR #53 got merged. Feel free to reopen if you feel so. |
The versions are very old, and in particular a number of bugs in TTF handling have been fixed in more recent versions.
The text was updated successfully, but these errors were encountered: