Set the ttcIndex on Mac onOpenStream.
authorbungeman <bungeman@google.com>
Mon, 2 Mar 2015 17:05:36 +0000 (09:05 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Mar 2015 17:05:37 +0000 (09:05 -0800)
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

src/ports/SkFontHost_mac.cpp

index 8c1010b..a4ee086 100755 (executable)
@@ -1740,6 +1740,7 @@ SkStreamAsset* SkTypeface_Mac::onOpenStream(int* ttcIndex) const {
         ++entry;
     }
 
+    *ttcIndex = 0;
     return stream;
 }