blob: cea7e901d9bfc93113afa6681de8a449e26ed765 [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,
tomhudson@google.comeebd62a2012-03-23 15:38:28 +000033 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo,
34 const uint32_t* glyphIDs,
35 uint32_t glyphIDsCount) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000036 SkDEBUGFAIL("SkFontHost::GetAdvancedTypefaceMetrics unimplemented");
vandebo@chromium.org2a22e102011-01-25 21:01:34 +000037 return NULL;
38}
39
reed@android.com2a645c92009-09-27 20:41:46 +000040void SkFontHost::FilterRec(SkScalerContext::Rec* rec) {
41}
42
reed@android.com8a1c16f2008-12-17 15:59:43 +000043///////////////////////////////////////////////////////////////////////////////
44
reed@android.comb1d9d2e2009-03-04 17:37:51 +000045SkStream* SkFontHost::OpenStream(uint32_t uniqueID) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000046 SkDEBUGFAIL("SkFontHost::OpenStream unimplemented");
reed@android.comb1d9d2e2009-03-04 17:37:51 +000047 return NULL;
48}
49
reed@android.comac981542009-07-31 16:17:01 +000050size_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
reed@android.comb1d9d2e2009-03-04 17:37:51 +000056///////////////////////////////////////////////////////////////////////////////
57
reed@android.com8a1c16f2008-12-17 15:59:43 +000058void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000059 SkDEBUGFAIL("SkFontHost::Serialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000060}
61
62SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000063 SkDEBUGFAIL("SkFontHost::Deserialize unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000064 return NULL;
65}
66
67///////////////////////////////////////////////////////////////////////////////
68
69SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
tomhudson@google.com0c00f212011-12-28 14:59:50 +000070 SkDEBUGFAIL("SkFontHost::CreateScalarContext unimplemented");
reed@android.com8a1c16f2008-12-17 15:59:43 +000071 return NULL;
72}
73
reed@google.com7d26c592011-06-13 13:01:10 +000074SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) {
reed@android.coma14ea0e2009-03-17 17:59:53 +000075 return 0;
reed@android.com8a1c16f2008-12-17 15:59:43 +000076}
77
joe.gregorioacb8fb02009-01-06 17:02:39 +000078