Right now in my game I’m drawing true type fonts like this:
for(int i = linesSkipped; i <= maxitems + linesSkipped; ++i)
{
if(i >= (int)textRows.size())
{
break;
}
paintargs.graphics()->drawText(AguiPoint(textX - 2,
textY - 2 + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(0,0,0),getFont());
paintargs.graphics()->drawText(AguiPoint(textX + 2,
textY + 2 + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(0,0,0),getFont());
paintargs.graphics()->drawText(AguiPoint(textX,
textY + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(255,128,0),getFont());
}
So I draw it with an offset of 2, then with an offset of -1 .
It almost does what I want, but the top right and bottom left edges are still unstroked:

Is there a way to draw it such that it would look like stroking in Photoshop?
Thanks
You need to draw the text in all corners! What you’re doing is drawing in the top-left corner and in the bottom-right corner, which is respectively
X=-2, Y=-2andX=2, Y=2.What you need to do, is to draw them in the bottom-left and the top-right corner too, which would be respectively
X=-2, Y=2andX=2, Y=-2.