memononen / fontstash

Light-weight online font texture atlas builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing spacing in fons__getQuad() ?

opened this issue · comments

When calculating the advance in fons__getQuad(), on line 1244:

*x += (int)(glyph->xadv / 10.0f + 0.5f);

Shouldn't the spacing be added somewhere like it is on line 1203:

*x += (int)(adv + spacing + 0.5f);

When you set -1 as letter spacing in nanovg, the result looks as if it set to 0.