projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12f881
)
Set the ttcIndex on Mac onOpenStream.
author
bungeman
<bungeman@google.com>
Mon, 2 Mar 2015 17:05:36 +0000
(09:05 -0800)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/src/ports/SkFontHost_mac.cpp
b/src/ports/SkFontHost_mac.cpp
index
8c1010b
..
a4ee086
100755
(executable)
--- a/
src/ports/SkFontHost_mac.cpp
+++ b/
src/ports/SkFontHost_mac.cpp
@@
-1740,6
+1740,7
@@
SkStreamAsset* SkTypeface_Mac::onOpenStream(int* ttcIndex) const {
++entry;
}
+ *ttcIndex = 0;
return stream;
}