pass ~0 for length when we want to know the length of a table (with dst==null)

git-svn-id: http://skia.googlecode.com/svn/trunk@7945 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
mike@reedtribe.org 2013-03-03 01:57:21 +00:00
parent dc09f07671
commit b753ef2ca9

View File

@ -1751,7 +1751,7 @@ int SkFontHost::GetTableTags(SkFontID fontID, SkFontTableTag tags[]) {
// DEPRECATED
size_t SkFontHost::GetTableSize(SkFontID fontID, SkFontTableTag tag) {
SkTypeface* face = SkTypefaceCache::FindByID(fontID);
return face ? face->onGetTableData(tag, 0, 0, NULL) : 0;
return face ? face->onGetTableData(tag, 0, ~0, NULL) : 0;
}
// DEPRECATED