Applying gradients to text or line-art objects