Curvature functions for 2-manifolds with negative Euler characteristic