Two-dimensional isothermal magnetostatic equilibria in a gravitational field. I: Unsheared equilibria