OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkFontStream_DEFINED | 8 #ifndef SkFontStream_DEFINED |
9 #define SkFontStream_DEFINED | 9 #define SkFontStream_DEFINED |
10 | 10 |
11 class SkStream; | 11 class SkStream; |
12 | 12 |
13 #include "SkTypeface.h" | 13 #include "SkTypeface.h" |
14 | 14 |
15 class SkFontStream { | 15 class SkFontStream { |
16 public: | 16 public: |
| 17 /** |
| 18 * Note: the stream is rewound initially, but is returned at an arbitrary |
| 19 * read offset. |
| 20 */ |
17 static int GetTableTags(SkStream*, SkFontTableTag tags[]); | 21 static int GetTableTags(SkStream*, SkFontTableTag tags[]); |
| 22 |
| 23 /** |
| 24 * Note: the stream is rewound initially, but is returned at an arbitrary |
| 25 * read offset. |
| 26 */ |
18 static size_t GetTableData(SkStream*, SkFontTableTag tag, | 27 static size_t GetTableData(SkStream*, SkFontTableTag tag, |
19 size_t offset, size_t length, void* data); | 28 size_t offset, size_t length, void* data); |
20 }; | 29 }; |
21 | 30 |
22 #endif | 31 #endif |
OLD | NEW |