Set the ttcIndex on Mac onOpenStream.

Since on Mac onOpenStream always creates a new stream of a
non-collection font, be sure the out ttcIndex is always set to 0.

Review URL: https://codereview.chromium.org/975473002
This commit is contained in:
bungeman 2015-03-02 09:05:36 -08:00 committed by Commit bot
parent b12f88152c
commit b3310c2221

View File

@ -1740,6 +1740,7 @@ SkStreamAsset* SkTypeface_Mac::onOpenStream(int* ttcIndex) const {
++entry;
}
*ttcIndex = 0;
return stream;
}