blob: e79926d54a7b33584a4b253949c0967e57746ba1 [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 +000043SkStream* SkFontHost::OpenStream(uint32_t uniqueID) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000044 SkDEBUGFAIL("SkFontHost::OpenStream unimplemented");
reed@android.comb1d9d2e2009-03-04 17:37:51 +000045 return NULL;
46}
47
reed@android.comac981542009-07-31 16:17:01 +000048size_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
reed@android.comb1d9d2e2009-03-04 17:37:51 +000054///////////////////////////////////////////////////////////////////////////////
55
reed@android.com8a1c16f2008-12-17 15:59:43 +000056void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000057 SkDEBUGFAIL("SkFontHost::Serialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000058}
59
60SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000061 SkDEBUGFAIL("SkFontHost::Deserialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000062 return NULL;
63}
64
65///////////////////////////////////////////////////////////////////////////////
66
67SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000068 SkDEBUGFAIL("SkFontHost::CreateScalarContext unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000069 return NULL;
70}
71
reed@google.com7d26c592011-06-13 13:01:10 +000072SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) {
reed@android.coma14ea0e2009-03-17 17:59:53 +000073 return 0;
reed@android.com8a1c16f2008-12-17 15:59:43 +000074}
75
joe.gregorioacb8fb02009-01-06 17:02:39 +000076