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:
parent
d510809317
commit
ce151d0eba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user