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" |
11 #include "SkFontHost.h" | |
12 #include "SkFontHost_FreeType_common.h" | 11 #include "SkFontHost_FreeType_common.h" |
13 #include "SkFontStream.h" | 12 #include "SkFontStream.h" |
14 #include "SkStream.h" | 13 #include "SkStream.h" |
15 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
16 #include "SkTypefaceCache.h" | 15 #include "SkTypefaceCache.h" |
17 | 16 |
18 /////////////////////////////////////////////////////////////////////////////// | 17 /////////////////////////////////////////////////////////////////////////////// |
19 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
20 | 19 |
21 SK_DECLARE_STATIC_MUTEX(gFontConfigInterfaceMutex); | 20 SK_DECLARE_STATIC_MUTEX(gFontConfigInterfaceMutex); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 151 } |
153 | 152 |
154 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, | 153 void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
155 bool* isLocalStream) const { | 154 bool* isLocalStream) const { |
156 SkString name; | 155 SkString name; |
157 this->getFamilyName(&name); | 156 this->getFamilyName(&name); |
158 desc->setFamilyName(name.c_str()); | 157 desc->setFamilyName(name.c_str()); |
159 desc->setFontIndex(this->getIdentity().fTTCIndex); | 158 desc->setFontIndex(this->getIdentity().fTTCIndex); |
160 *isLocalStream = SkToBool(this->getLocalStream()); | 159 *isLocalStream = SkToBool(this->getLocalStream()); |
161 } | 160 } |
OLD | NEW |