examples/gkurve: added atlas text rendering and freetype linking #310

Merged
PiergiorgioZagaria merged 1 commit from main into main 2022-05-28 04:24:32 +00:00
PiergiorgioZagaria commented 2022-05-26 19:21:17 +00:00 (Migrated from github.com)
  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
- [X] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
PiergiorgioZagaria commented 2022-05-26 19:28:27 +00:00 (Migrated from github.com)

It's still very WIP, I think I will start working on the scalable text now. I will move text.zig to something like label.zig and create another scalable_label.zig file with the other implementation. After that I will work on a major refactor of the whole draw API.

It's still very WIP, I think I will start working on the scalable text now. I will move text.zig to something like label.zig and create another scalable_label.zig file with the other implementation. After that I will work on a major refactor of the whole draw API.
emidoots (Migrated from github.com) approved these changes 2022-05-28 04:22:04 +00:00
emidoots commented 2022-05-28 04:23:41 +00:00 (Migrated from github.com)

nice work!

One thing I notice is we have bleeding between the glyphs (right side of letters B and S):

image

Probably we need to add more margin between items in the texture atlas.

nice work! One thing I notice is we have bleeding between the glyphs (right side of letters B and S): <img width="869" alt="image" src="https://user-images.githubusercontent.com/3173176/170809569-c43c6acb-aa45-4461-a8f6-7a0f3be0a63c.png"> Probably we need to add more margin between items in the texture atlas.
emidoots commented 2022-05-28 04:24:28 +00:00 (Migrated from github.com)

(I fixed the merge conflict and made the build.zig change simpler)

(I fixed the merge conflict and made the build.zig change simpler)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!310
No description provided.