I was tried described issue in R19 and R21 and must say it´s bug. Standard painting with brush works correctly, but "projection" paint tools are inverted.
So, Gradient tool,Draw Line, Draw Text and Draw Polygon Shape are projected inverted in case are used orthographic viewports. Tools works fine while used in perspective viewport or projected directly in UV editor view...
In R19 works these tools correctly.