Just seeing the first subpixel-AA'ed font-atlas rendering for makepad. Is a nice gpu-accelerated atlas generator, should do great for text in VR and low DPI. Makepad now loads .ttf files directly, 0 c-deps just Rust. Few more days and i should be able to push it to master.
-
-
-
Replying to @pcwalton
No trapezoids directly to a pixel atlas. But without any need for float textures.
1 reply 0 retweets 0 likes -
Replying to @rikarends @pcwalton
@ejpbruel made it so feel free to ask him more details :)1 reply 0 retweets 0 likes -
This is the shader for drawing it. Purpose is only to generate atlasses: https://github.com/makepad/makepad/blob/dev/render/src/cx_fonts.rs#L56 …
1 reply 0 retweets 0 likes -
-
No GPU, the glyphs are trapezoidated and rendered on gpu onto atlas texture. It doesn't have to be super fast.
1 reply 0 retweets 0 likes -
Trapezoidation is on CPU yes.
1 reply 0 retweets 0 likes -
That shader that looks like Rust isn't CPU code, it transpiles to GLSL, metal, hlsl, and so on.
1 reply 1 retweet 4 likes -
Looks like an approach like Pathfinder 2 then. Cool :)
-
-
Yep very much so i think.
1 reply 0 retweets 0 likes -
Replying to @rikarends @pcwalton
Yeah, can confirm. I wrote the trapezoidation and original shader code, and it is very much based on Pathfinder 2. :-)
0 replies 0 retweets 2 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.