Text this: Generalised density function estimation using moments and the characteristic function