1 2 /* 3 * Copyright 2008 The Android Open Source Project 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9 10 #include "SkFontHost.h" 11 #include "SkScalerContext.h" 12 13 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, 14 const char famillyName[], 15 SkTypeface::Style style) { 16 SkDEBUGFAIL("SkFontHost::FindTypeface unimplemented"); 17 return NULL; 18 } 19 20 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) { 21 SkDEBUGFAIL("SkFontHost::CreateTypeface unimplemented"); 22 return NULL; 23 } 24 25 SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) { 26 SkDEBUGFAIL("SkFontHost::CreateTypefaceFromFile unimplemented"); 27 return NULL; 28 } 29 30 // static 31 SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics( 32 uint32_t fontID, 33 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, 34 const uint32_t* glyphIDs, 35 uint32_t glyphIDsCount) { 36 SkDEBUGFAIL("SkFontHost::GetAdvancedTypefaceMetrics unimplemented"); 37 return NULL; 38 } 39 40 void SkFontHost::FilterRec(SkScalerContext::Rec* rec, SkTypeface*) { 41 } 42 43 /////////////////////////////////////////////////////////////////////////////// 44 45 SkStream* SkFontHost::OpenStream(uint32_t uniqueID) { 46 SkDEBUGFAIL("SkFontHost::OpenStream unimplemented"); 47 return NULL; 48 } 49 50 size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length, 51 int32_t* index) { 52 SkDebugf("SkFontHost::GetFileName unimplemented\n"); 53 return 0; 54 } 55 56 /////////////////////////////////////////////////////////////////////////////// 57 58 void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) { 59 SkDEBUGFAIL("SkFontHost::Serialize unimplemented"); 60 } 61 62 SkTypeface* SkFontHost::Deserialize(SkStream* stream) { 63 SkDEBUGFAIL("SkFontHost::Deserialize unimplemented"); 64 return NULL; 65 } 66 67 /////////////////////////////////////////////////////////////////////////////// 68 69 SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) { 70 SkDEBUGFAIL("SkFontHost::CreateScalarContext unimplemented"); 71 return NULL; 72 } 73 74 SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) { 75 return 0; 76 } 77