add paint class support

This PR allows to use setTypeface(PaintObj, TypefaceName). 
please format this indent as spaces