blob: 471ffd825ff5ef6e53a7d3aee7037698c3d7addb [file] [log] [blame]
reed@android.com8a1c16f2008-12-17 15:59:43 +00001/* Copyright 2006-2008, The Android Open Source Project
2**
3** Licensed under the Apache License, Version 2.0 (the "License");
4** you may not use this file except in compliance with the License.
5** You may obtain a copy of the License at
6**
7** http://www.apache.org/licenses/LICENSE-2.0
8**
9** Unless required by applicable law or agreed to in writing, software
10** distributed under the License is distributed on an "AS IS" BASIS,
11** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12** See the License for the specific language governing permissions and
13** limitations under the License.
14*/
15
16#include "SkFontHost.h"
17
reed@android.comb1d9d2e2009-03-04 17:37:51 +000018SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
reed@android.com8a1c16f2008-12-17 15:59:43 +000019 const char famillyName[],
20 SkTypeface::Style style) {
21 SkASSERT(!"SkFontHost::FindTypeface unimplemented");
22 return NULL;
23}
24
reed@android.comb1d9d2e2009-03-04 17:37:51 +000025SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) {
reed@android.com8a1c16f2008-12-17 15:59:43 +000026 SkASSERT(!"SkFontHost::CreateTypeface unimplemented");
27 return NULL;
28}
29
joe.gregorioacb8fb02009-01-06 17:02:39 +000030SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) {
31 SkASSERT(!"SkFontHost::CreateTypefaceFromFile unimplemented");
32 return NULL;
33}
34
reed@android.com8a1c16f2008-12-17 15:59:43 +000035///////////////////////////////////////////////////////////////////////////////
36
reed@android.comb1d9d2e2009-03-04 17:37:51 +000037bool SkFontHost::ValidFontID(uint32_t uniqueID) {
38 SkASSERT(!"SkFontHost::ResolveTypeface unimplemented");
39 return false;
40}
41
42SkStream* SkFontHost::OpenStream(uint32_t uniqueID) {
43 SkASSERT(!"SkFontHost::OpenStream unimplemented");
44 return NULL;
45}
46
47///////////////////////////////////////////////////////////////////////////////
48
reed@android.com8a1c16f2008-12-17 15:59:43 +000049void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
50 SkASSERT(!"SkFontHost::Serialize unimplemented");
51}
52
53SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
54 SkASSERT(!"SkFontHost::Deserialize unimplemented");
55 return NULL;
56}
57
58///////////////////////////////////////////////////////////////////////////////
59
60SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
61 SkASSERT(!"SkFontHost::CreateScalarContext unimplemented");
62 return NULL;
63}
64
reed@android.coma14ea0e2009-03-17 17:59:53 +000065uint32_t SkFontHost::NextLogicalFont(uint32_t fontID) {
66 return 0;
reed@android.com8a1c16f2008-12-17 15:59:43 +000067}
68
joe.gregorioacb8fb02009-01-06 17:02:39 +000069
reed@android.com8a1c16f2008-12-17 15:59:43 +000070///////////////////////////////////////////////////////////////////////////////
71
72size_t SkFontHost::ShouldPurgeFontCache(size_t sizeAllocatedSoFar) {
73 return 0; // nothing to do (change me if you want to limit the font cache)
74}
75
76int SkFontHost::ComputeGammaFlag(const SkPaint& paint) {
77 return 0;
78}
79
80void SkFontHost::GetGammaTables(const uint8_t* tables[2]) {
81 tables[0] = NULL; // black gamma (e.g. exp=1.4)
82 tables[1] = NULL; // white gamma (e.g. exp= 1/1.4)
83}
84