Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-14 Thread Maciej Sumiński
Michael,

Thank you very much for your work on the MSDF text rendering, it is an
significant improvement to the previous algorithm. I have just pushed
your changes to the master branch.

Regards,
Orson

On 09/13/2016 01:38 PM, Michael Steinberg wrote:
> Hello all!
> 
> Thank you very much for the feedback. As I understand the technique
> works well enough on many different hardware levels (I'm using it myself
> in an i5 iGPU), so that's good to know. I tweaked the character
> placement to get in accordance with what the truetype font specifies.
> Beside other issues, this fixes the reported GND baseline problem, still
> their bounding boxes are not bottom-aligned, but their baselines are.
> These changes were pushed to the sdf branch.
> There are some issues left that I would call minor (some special chars
> show slight glitches), but I would think that should not be a
> showstopper for now, I will still eventually try to address them. So
> unless there are important issues left I would polish the codestyle and
> get in touch with Orson for inclusion?
> 
> The atlas tool is now available on Github with CMake support (thank you
> very much José!), so there should be no "blackbox"-problem remaining.
> 
> Cheers!
> Michael




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-13 Thread Michael Steinberg

Hello all!

Thank you very much for the feedback. As I understand the technique 
works well enough on many different hardware levels (I'm using it myself 
in an i5 iGPU), so that's good to know. I tweaked the character 
placement to get in accordance with what the truetype font specifies. 
Beside other issues, this fixes the reported GND baseline problem, still 
their bounding boxes are not bottom-aligned, but their baselines are. 
These changes were pushed to the sdf branch.
There are some issues left that I would call minor (some special chars 
show slight glitches), but I would think that should not be a 
showstopper for now, I will still eventually try to address them. So 
unless there are important issues left I would polish the codestyle and 
get in touch with Orson for inclusion?


The atlas tool is now available on Github with CMake support (thank you 
very much José!), so there should be no "blackbox"-problem remaining.


Cheers!
Michael

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-12 Thread Michael Steinberg

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  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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-12 Thread 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  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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-12 Thread Tomasz Wlostowski
On 10.09.2016 17:05, Michael Steinberg 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.

Hi Michael,

Just tried it. Works like a charm and looks beautiful. Many thanks!

Cheers,
Tom

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-11 Thread José Ignacio
Hi, I just committed some basic CMake support to that repo, it should
compile on all platforms provided you have the freetype and boost
libraries installed (I don't know which minimum versions are
required). It compiled successfully on Debian stretch with boost 1.61
and freetype 2.6.3.

On Sun, Sep 11, 2016 at 5:33 AM, Michael Steinberg  wrote:
> Hello Jean-Pierre,
>>
>> Could you tell us more about this command-line tool?
>
> the tool uses the MSDF-library by Viktor Chlumsky, adds a rectangle bin
> packing algorithm (max rectangles global) to pack the texture atlas and
> outputs in the format that is used by KiCad currently. Given that, for full
> support (Better character placement, maybe even kerning?) I would like to
> cooperate with Orson to make the necessary changes to the current OpenGL
> string code.
> I uploaded the Visual Studio project for the tool under MIT-License (the
> library by Viktor Chlumsky uses that license) to
> https://github.com/decimad/msdf-atlasgen .
>
> Cheers!
> Michael
>
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-11 Thread Eldar Khayrullin

Works fine.
OS Ubuntu 16.04
GPU: AMD HD 4870 512 Mb, opensource driver

В Суббота, 10 сен. 2016 в 6:05 , Michael Steinberg 
 написал:

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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-11 Thread Michael Steinberg

Hello Jean-Pierre,

Could you tell us more about this command-line tool?
the tool uses the MSDF-library by Viktor Chlumsky, adds a rectangle bin 
packing algorithm (max rectangles global) to pack the texture atlas and 
outputs in the format that is used by KiCad currently. Given that, for 
full support (Better character placement, maybe even kerning?) I would 
like to cooperate with Orson to make the necessary changes to the 
current OpenGL string code.
I uploaded the Visual Studio project for the tool under MIT-License (the 
library by Viktor Chlumsky uses that license) to 
https://github.com/decimad/msdf-atlasgen .


Cheers!
Michael

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread Simon Wells
same here on osx

On Sun, Sep 11, 2016 at 2:38 PM, Chris Pavlina  wrote:
> Works great on my big-ass board, and looks *so* much better. Zooming
> feels ever so slightly slower on this board, but not enough to matter.
>
> On Sat, Sep 10, 2016 at 05:05:24PM +0200, Michael Steinberg 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@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread Chris Pavlina
Works great on my big-ass board, and looks *so* much better. Zooming
feels ever so slightly slower on this board, but not enough to matter.

On Sat, Sep 10, 2016 at 05:05:24PM +0200, Michael Steinberg 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread jp charras
Le 10/09/2016 à 17:05, Michael Steinberg a écrit :
> 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.

On W7 32 bits, "Intel HD Graphic Family" card:
Works fine, and the result is really very *good*.


> 
> 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.

Could you tell us more about this command-line tool?

> 
> Cheers!
> Michael
> 

Thanks.

-- 
Jean-Pierre CHARRAS

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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread Vesa Solonen
10/09/16, 18:05, Michael Steinberg kirjoitti:

> 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.

Seems fine on [AMD/ATI] RV610 [Radeon HD 2400 PRO/XT] using open source
drivers of Ubuntu 16.04. The font rendering is much better on all sizes.

-Vesa



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


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread firewalker
It seems to work as expected on Arch Linux 32 bit.

On Sat, Sep 10, 2016 at 6:05 PM, Michael Steinberg 
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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread José Ignacio
It works great on my end! As for the tool, I think it would be good to
just have it in a repo on github, as it could be very useful for other
projects too.

On Sat, Sep 10, 2016 at 10:05 AM, Michael Steinberg
 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

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


[Kicad-developers] "Multichannel signed distance field" font rendering

2016-09-10 Thread Michael Steinberg

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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp