return false if the typeface cannot be found

from https://codereview.appspot.com/5756059/



git-svn-id: http://skia.googlecode.com/svn/trunk@3340 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-03-08 16:10:57 +00:00
parent d510809317
commit ce151d0eba

View File

@ -29,6 +29,7 @@ static bool setFont(SkPaint* paint, const char name[]) {
paint->setTypeface(tf)->unref();
return true;
}
return false;
}
#ifdef SK_BUILD_FOR_MAC