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