News for hackers. Stuff that matters.
Re:Leveraging Rust and the GPU to render user interfaces at ... by dorkwood on Thursday March 09, 2023 @04:09AM (#35079526)
> KiCad uses a technique using RGB for gradients so that the rendered glyphs can be anti-aliased without accidentally rounding sharp corners.

This is known as a “multi-channel signed distance field”, or “msdf”.

https://github.com/Chlumsky/msdfgen

Re:Leveraging Rust and the GPU to render user interfaces at ... by scotty79 on Thursday March 09, 2023 @09:02AM (#35081228)
Do you know any text editor that uses it for font rendering?
Re:Leveraging Rust and the GPU to render user interfaces at ... by fxtentacle on Thursday March 09, 2023 @01:10PM (#35084529)
You would have to use that if you want smooth antialiased zooming in and out of text.

BTW, the KiCad schematics are pretty text-heavy. You typically write down all the parameters and IDs of all the electrical components.

Re:Leveraging Rust and the GPU to render user interfaces at ... by rikarendsmp on Saturday March 11, 2023 @04:56AM (#35106955)
I used to use it, but its extremely font and glyph-sensitive wether or not it works. And if it doesn't work there is no easy fix (or ability to recognise it nonvisually)