fixing an NPE when initializing from a Paint object that has no typeface