add paint class support

This PR allows to use setTypeface(PaintObj, TypefaceName).