So in between Microsoft's devs calling a pixel shader that looks up glyphs a "doctoral thesis project" an hour ago, and right now, @mmozeiko just wrote the actual shader and posted it:https://gist.github.com/mmozeiko/c7cd68ba0733a0d9e4f0a97691a50d39 …
-
Show this thread
-
Replying to @cmuratori @mmozeiko
the one thing this is missing is support for ligatures and double width characters
2 replies 0 retweets 2 likes -
Both of those are supported. You put them in the atlas and you split into two indexes.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @mmozeiko
ah I see, I guess all you need now is to write the code to convert the text to glyphs and convert the glyphs to indexes and add any new glyphs to the texture
1 reply 0 retweets 0 likes
Correct. Which is not as trivial as it sounds, because to support ClearType you need to do some careful rasterization so you can save the right coverage information, and/or supersample, or whatever you choose. It's not hard, but it would be for the Windows Terminal team.
7:59 PM - 16 Jun 2021
0 replies
0 retweets
2 likes
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.