The density of a fluid on a curved surface