[Linux] fixed horizontal font alignment

kAlignTop and kAlignBottom should center text horizontally
kAlignTopRight and kAlignBottomRight should align text to the right edge