OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkAdvancedTypefaceMetrics.h" | 9 #include "SkAdvancedTypefaceMetrics.h" |
10 #include "SkBase64.h" | 10 #include "SkBase64.h" |
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2364 SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path)); | 2364 SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path)); |
2365 return stream.get() ? CreateTypefaceFromStream(stream) : NULL; | 2365 return stream.get() ? CreateTypefaceFromStream(stream) : NULL; |
2366 } | 2366 } |
2367 | 2367 |
2368 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) { | 2368 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) { |
2369 return create_from_stream(stream); | 2369 return create_from_stream(stream); |
2370 } | 2370 } |
2371 | 2371 |
2372 #endif | 2372 #endif |
2373 | 2373 |
2374 SkFontMgr* SkFontMgr::Factory() { | 2374 extern SkFontMgr* SkFontMgr_New_GDI(); |
2375 extern SkFontMgr* SkFontMgr_New_DirectWrite(); | |
bungeman-skia
2013/08/14 15:24:11
I don't think this is needed anymore?
reed1
2013/08/14 15:27:47
Done.
| |
2376 | |
2377 SkFontMgr* SkFontMgr_New_GDI() { | |
2375 return SkNEW(SkFontMgrGDI); | 2378 return SkNEW(SkFontMgrGDI); |
2376 } | 2379 } |
OLD | NEW |