← Back to team overview

kicad-developers team mailing list archive

Re: "Multichannel signed distance field" font rendering

 

Hey,

thanks for noticing. That and more off by one errors I'm working on to fix currently. As I said, not polished, rather proof-of-concept.

Michael

Am 12.09.2016 um 17:18 schrieb Bernhard Stegmaier:
Hi,

looks great!

One nitpicking question about the comparison screenshots:
It looks like the baselines of the three letters are not the same… “N” is higher than “D”, “D” is higher than “G”.
It doesn’t look like this in the blurry version…
Where does this come from?


Regards,
Bernhard


On 10 Sep 2016, at 17:05, Michael Steinberg <michsteinb@xxxxxxxxx> wrote:

Hello there,

I've been working on trying to solve the blurred font issue in the OpenGL canvas. The current state of the work can be found in my branch "sdf" ( https://code.launchpad.net/~decimad/kicad/+git/kicad/+ref/sdf ). It uses a technique called "multichannel signed distance field" to recreate clear edges and corners in high zoom situations. The code is not polished for commiting yet! A motivational comparison screenshot before/after: https://s10.postimg.io/k00tnaax5/comparison.png

It would be great if brave members could test the branch to see if it runs well on different hardware levels and if you are happy with the visuals.

To create the font texture atlas I wrote a command-line tool that is only set up to build on windows currently (nothing platform dependent included, but it's currently a visual studio project). I don't know if there's a space to upload helper tools and if platform dependency would be accepted there. I could probably upload it to a github project though.

Cheers!
Michael


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



References