UMG - Pixel perfect borders

As alternative you can try a plain Image widget:

  1. for a plain line try white texture with ie 1px height
  2. for a pixel perfect border try the box rendering mode & a border texture (literally a texture with 1px white border on the edges and transparency inside)