reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame^] | 1 | /* 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 | |
| 18 | SkTypeface* SkFontHost::FindTypeface(const SkTypeface* familyFace, |
| 19 | const char famillyName[], |
| 20 | SkTypeface::Style style) { |
| 21 | SkASSERT(!"SkFontHost::FindTypeface unimplemented"); |
| 22 | return NULL; |
| 23 | } |
| 24 | |
| 25 | SkTypeface* SkFontHost::ResolveTypeface(uint32_t uniqueID) { |
| 26 | SkASSERT(!"SkFontHost::ResolveTypeface unimplemented"); |
| 27 | return NULL; |
| 28 | } |
| 29 | |
| 30 | SkStream* SkFontHost::OpenStream(uint32_t uniqueID) { |
| 31 | SkASSERT(!"SkFontHost::OpenStream unimplemented"); |
| 32 | return NULL; |
| 33 | } |
| 34 | |
| 35 | void SkFontHost::CloseStream(uint32_t uniqueID, SkStream*) { |
| 36 | SkASSERT(!"SkFontHost::CloseStream unimplemented"); |
| 37 | } |
| 38 | |
| 39 | SkTypeface* SkFontHost::CreateTypeface(SkStream*) { |
| 40 | SkASSERT(!"SkFontHost::CreateTypeface unimplemented"); |
| 41 | return NULL; |
| 42 | } |
| 43 | |
| 44 | /////////////////////////////////////////////////////////////////////////////// |
| 45 | |
| 46 | void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) { |
| 47 | SkASSERT(!"SkFontHost::Serialize unimplemented"); |
| 48 | } |
| 49 | |
| 50 | SkTypeface* SkFontHost::Deserialize(SkStream* stream) { |
| 51 | SkASSERT(!"SkFontHost::Deserialize unimplemented"); |
| 52 | return NULL; |
| 53 | } |
| 54 | |
| 55 | /////////////////////////////////////////////////////////////////////////////// |
| 56 | |
| 57 | SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) { |
| 58 | SkASSERT(!"SkFontHost::CreateScalarContext unimplemented"); |
| 59 | return NULL; |
| 60 | } |
| 61 | |
| 62 | SkScalerContext* SkFontHost::CreateFallbackScalerContext( |
| 63 | const SkScalerContext::Rec&) { |
| 64 | SkASSERT(!"SkFontHost::CreateFallbackScalerContext unimplemented"); |
| 65 | return NULL; |
| 66 | } |
| 67 | |
| 68 | /////////////////////////////////////////////////////////////////////////////// |
| 69 | |
| 70 | size_t SkFontHost::ShouldPurgeFontCache(size_t sizeAllocatedSoFar) { |
| 71 | return 0; // nothing to do (change me if you want to limit the font cache) |
| 72 | } |
| 73 | |
| 74 | int SkFontHost::ComputeGammaFlag(const SkPaint& paint) { |
| 75 | return 0; |
| 76 | } |
| 77 | |
| 78 | void SkFontHost::GetGammaTables(const uint8_t* tables[2]) { |
| 79 | tables[0] = NULL; // black gamma (e.g. exp=1.4) |
| 80 | tables[1] = NULL; // white gamma (e.g. exp= 1/1.4) |
| 81 | } |
| 82 | |