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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 void FontConfigTypeface::onGetFamilyName(SkString* familyName) const { | 149 void FontConfigTypeface::onGetFamilyName(SkString* familyName) const { |
150 *familyName = fFamilyName; | 150 *familyName = fFamilyName; |
151 } | 151 } |
152 | 152 |
153 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, | 153 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
154 bool* isLocalStream) const { | 154 bool* isLocalStream) const { |
155 SkString name; | 155 SkString name; |
156 this->getFamilyName(&name); | 156 this->getFamilyName(&name); |
157 desc->setFamilyName(name.c_str()); | 157 desc->setFamilyName(name.c_str()); |
| 158 desc->setFontIndex(this->getIdentity().fTTCIndex); |
158 *isLocalStream = SkToBool(this->getLocalStream()); | 159 *isLocalStream = SkToBool(this->getLocalStream()); |
159 } | 160 } |
OLD | NEW |