Recent studies of wetting in a two-component square-gradient model of interfaces in a fluid mixture, showing three-phase bulk coexistence, have revealed some highly surprising features. Numerical results show that the density profile paths, which form a tricuspid shape in the density plane, have curious geometric properties, while conjectures for the analytical form of the surface tensions imply that nonwetting may persist up to the critical end points, contrary to the usual expectation of critical point wetting. Here, we solve the model exactly and show that the profile paths are conformally invariant quartic algebraic curves that change genus at the wetting transition. Being harmonic, the profile paths can be represented by an analytic function in the complex plane which then conformally maps the paths onto straight lines. Using this, we derive the conjectured form of the surface tensions and explain the geometrical properties of the tricuspid and its relation to the Neumann triangle for the contact angles. The exact solution confirms that critical point wetting is absent in this square-gradient model.