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