Using dominant baseline for text alignment