blob: 99df2134cd5ee77bd41c86f87bff10d954952869 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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
reed@android.com8a1c16f2008-12-17 15:59:43 +00009
10#include "SkFontHost.h"
11
reed@android.comb1d9d2e2009-03-04 17:37:51 +000012SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
reed@android.com8a1c16f2008-12-17 15:59:43 +000013 const char famillyName[],
agl@chromium.org5f6a0762010-04-20 22:06:40 +000014 const void* data, size_t bytelength,
reed@android.com8a1c16f2008-12-17 15:59:43 +000015 SkTypeface::Style style) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000016 SkDEBUGFAIL("SkFontHost::FindTypeface unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000017 return NULL;
18}
19
reed@android.comb1d9d2e2009-03-04 17:37:51 +000020SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000021 SkDEBUGFAIL("SkFontHost::CreateTypeface unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000022 return NULL;
23}
24
joe.gregorioacb8fb02009-01-06 17:02:39 +000025SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000026 SkDEBUGFAIL("SkFontHost::CreateTypefaceFromFile unimplemented");
joe.gregorioacb8fb02009-01-06 17:02:39 +000027 return NULL;
28}
29
vandebo@chromium.org2a22e102011-01-25 21:01:34 +000030// static
vandebo@chromium.orgc48b2b32011-02-02 02:11:22 +000031SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics(
vandebo@chromium.org325cb9a2011-03-30 18:36:29 +000032 uint32_t fontID,
33 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000034 SkDEBUGFAIL("SkFontHost::GetAdvancedTypefaceMetrics unimplemented");
vandebo@chromium.org2a22e102011-01-25 21:01:34 +000035 return NULL;
36}
37
reed@android.com2a645c92009-09-27 20:41:46 +000038void SkFontHost::FilterRec(SkScalerContext::Rec* rec) {
39}
40
reed@android.com8a1c16f2008-12-17 15:59:43 +000041///////////////////////////////////////////////////////////////////////////////
42
reed@android.comb1d9d2e2009-03-04 17:37:51 +000043bool SkFontHost::ValidFontID(uint32_t uniqueID) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000044 SkDEBUGFAIL("SkFontHost::ResolveTypeface unimplemented");
reed@android.comb1d9d2e2009-03-04 17:37:51 +000045 return false;
46}
47
48SkStream* SkFontHost::OpenStream(uint32_t uniqueID) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000049 SkDEBUGFAIL("SkFontHost::OpenStream unimplemented");
reed@android.comb1d9d2e2009-03-04 17:37:51 +000050 return NULL;
51}
52
reed@android.comac981542009-07-31 16:17:01 +000053size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length,
54 int32_t* index) {
55 SkDebugf("SkFontHost::GetFileName unimplemented\n");
56 return 0;
57}
58
reed@android.comb1d9d2e2009-03-04 17:37:51 +000059///////////////////////////////////////////////////////////////////////////////
60
reed@android.com8a1c16f2008-12-17 15:59:43 +000061void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000062 SkDEBUGFAIL("SkFontHost::Serialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000063}
64
65SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000066 SkDEBUGFAIL("SkFontHost::Deserialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000067 return NULL;
68}
69
70///////////////////////////////////////////////////////////////////////////////
71
72SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000073 SkDEBUGFAIL("SkFontHost::CreateScalarContext unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000074 return NULL;
75}
76
reed@google.com7d26c592011-06-13 13:01:10 +000077SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) {
reed@android.coma14ea0e2009-03-17 17:59:53 +000078 return 0;
reed@android.com8a1c16f2008-12-17 15:59:43 +000079}
80
joe.gregorioacb8fb02009-01-06 17:02:39 +000081