Variable dot thermal printer