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 12SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, 13 const char famillyName[], 14 const void* data, size_t bytelength, 15 SkTypeface::Style style) { 16 SkDEBUGFAIL("SkFontHost::FindTypeface unimplemented"); 17 return NULL; 18} 19 20SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) { 21 SkDEBUGFAIL("SkFontHost::CreateTypeface unimplemented"); 22 return NULL; 23} 24 25SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) { 26 SkDEBUGFAIL("SkFontHost::CreateTypefaceFromFile unimplemented"); 27 return NULL; 28} 29 30// static 31SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics( 32 uint32_t fontID, 33 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo) { 34 SkDEBUGFAIL("SkFontHost::GetAdvancedTypefaceMetrics unimplemented"); 35 return NULL; 36} 37 38void SkFontHost::FilterRec(SkScalerContext::Rec* rec) { 39} 40 41/////////////////////////////////////////////////////////////////////////////// 42 43SkStream* SkFontHost::OpenStream(uint32_t uniqueID) { 44 SkDEBUGFAIL("SkFontHost::OpenStream unimplemented"); 45 return NULL; 46} 47 48size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length, 49 int32_t* index) { 50 SkDebugf("SkFontHost::GetFileName unimplemented\n"); 51 return 0; 52} 53 54/////////////////////////////////////////////////////////////////////////////// 55 56void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) { 57 SkDEBUGFAIL("SkFontHost::Serialize unimplemented"); 58} 59 60SkTypeface* SkFontHost::Deserialize(SkStream* stream) { 61 SkDEBUGFAIL("SkFontHost::Deserialize unimplemented"); 62 return NULL; 63} 64 65/////////////////////////////////////////////////////////////////////////////// 66 67SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) { 68 SkDEBUGFAIL("SkFontHost::CreateScalarContext unimplemented"); 69 return NULL; 70} 71 72SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) { 73 return 0; 74} 75 76 77