If your lines are always straight and you don’t look at curves with an alias, you can take a three-pass approach.
I'm not sure how effective this will be in your environment, but you can draw an alias version of the string with thickness - 2, and then use the Xiaolin Wu approach twice to smooth the edges. The @Francisco P. approach will work too and may be preferable.
, . , , , .