OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 Google Inc. | 2 * Copyright 2008 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkFontConfigInterface.h" | 8 #include "SkFontConfigInterface.h" |
9 #include "SkFontConfigTypeface.h" | 9 #include "SkFontConfigTypeface.h" |
10 #include "SkFontDescriptor.h" | 10 #include "SkFontDescriptor.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return stream; | 162 return stream; |
163 } | 163 } |
164 | 164 |
165 void FontConfigTypeface::onGetFamilyName(SkString* familyName) const { | 165 void FontConfigTypeface::onGetFamilyName(SkString* familyName) const { |
166 *familyName = this->getFamilyName(); | 166 *familyName = this->getFamilyName(); |
167 } | 167 } |
168 | 168 |
169 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, | 169 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
170 bool* isLocalStream) const { | 170 bool* isLocalStream) const { |
171 desc->setFamilyName(this->getFamilyName()); | 171 desc->setFamilyName(this->getFamilyName()); |
| 172 desc->setFontIndex(this->getIdentity().fTTCIndex); |
172 *isLocalStream = SkToBool(this->getLocalStream()); | 173 *isLocalStream = SkToBool(this->getLocalStream()); |
173 } | 174 } |
OLD | NEW |