OLD | NEW |
1 /* libs/graphics/ports/SkFontHost_fontconfig.cpp | 1 /* libs/graphics/ports/SkFontHost_fontconfig.cpp |
2 ** | 2 ** |
3 ** Copyright 2008, Google Inc. | 3 ** Copyright 2008, Google Inc. |
4 ** | 4 ** |
5 ** Licensed under the Apache License, Version 2.0 (the "License"); | 5 ** Licensed under the Apache License, Version 2.0 (the "License"); |
6 ** you may not use this file except in compliance with the License. | 6 ** you may not use this file except in compliance with the License. |
7 ** You may obtain a copy of the License at | 7 ** You may obtain a copy of the License at |
8 ** | 8 ** |
9 ** http://www.apache.org/licenses/LICENSE-2.0 | 9 ** http://www.apache.org/licenses/LICENSE-2.0 |
10 ** | 10 ** |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void SkFontHost::Serialize(const SkTypeface*, SkWStream*) { | 224 void SkFontHost::Serialize(const SkTypeface*, SkWStream*) { |
225 SkASSERT(!"SkFontHost::Serialize unimplemented"); | 225 SkASSERT(!"SkFontHost::Serialize unimplemented"); |
226 } | 226 } |
227 | 227 |
228 SkTypeface* SkFontHost::Deserialize(SkStream* stream) { | 228 SkTypeface* SkFontHost::Deserialize(SkStream* stream) { |
229 SkASSERT(!"SkFontHost::Deserialize unimplemented"); | 229 SkASSERT(!"SkFontHost::Deserialize unimplemented"); |
230 return NULL; | 230 return NULL; |
231 } | 231 } |
232 | 232 |
233 // static | 233 // static |
234 uint32_t SkFontHost::NextLogicalFont(SkFontID fontID) { | 234 uint32_t SkFontHost::NextLogicalFont(SkFontID curr, SkFontID orig) { |
235 // We don't handle font fallback, WebKit does. | 235 // We don't handle font fallback, WebKit does. |
236 return 0; | 236 return 0; |
237 } | 237 } |
238 | 238 |
239 /////////////////////////////////////////////////////////////////////////////// | 239 /////////////////////////////////////////////////////////////////////////////// |
240 | 240 |
241 class SkFileDescriptorStream : public SkStream { | 241 class SkFileDescriptorStream : public SkStream { |
242 public: | 242 public: |
243 SkFileDescriptorStream(int fd) { | 243 SkFileDescriptorStream(int fd) { |
244 memory_ = NULL; | 244 memory_ = NULL; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 if (!path) | 351 if (!path) |
352 return 1; | 352 return 1; |
353 } | 353 } |
354 | 354 |
355 if (path) | 355 if (path) |
356 SkASSERT(!"SkFontHost::GetFileName does not support the font path " | 356 SkASSERT(!"SkFontHost::GetFileName does not support the font path " |
357 "retrieval."); | 357 "retrieval."); |
358 | 358 |
359 return 0; | 359 return 0; |
360 } | 360 } |
OLD | NEW |