diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-05 22:12:11 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-05 22:12:11 +0000 |
commit | 5bfc8396228b7a9e5be679aeb10f30860adf938f (patch) | |
tree | 606192f0cba0680fdf78dd9d0633513ed605f23f /src/core/SkFontStream.h | |
parent | 90ee4488e9c6b8ec4cb1137250fed43b5919ce2c (diff) |
start to plumb ttcIndex into fonthost. For now just add to SkFontStream and its callers.
Review URL: https://codereview.chromium.org/12485002
git-svn-id: http://skia.googlecode.com/svn/trunk@7998 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkFontStream.h')
-rw-r--r-- | src/core/SkFontStream.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/SkFontStream.h b/src/core/SkFontStream.h index 283aee077f..9cd51fc708 100644 --- a/src/core/SkFontStream.h +++ b/src/core/SkFontStream.h @@ -15,16 +15,29 @@ class SkStream; class SkFontStream { public: /** + * Return the number of shared 'fonts' inside a TTC sfnt, or return 0 + * if the stream is a normal sfnt (not a TTC). + * * Note: the stream is rewound initially, but is returned at an arbitrary * read offset. */ - static int GetTableTags(SkStream*, SkFontTableTag tags[]); + static int CountTTCEntries(SkStream*); /** + * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt. + * * Note: the stream is rewound initially, but is returned at an arbitrary * read offset. */ - static size_t GetTableData(SkStream*, SkFontTableTag tag, + static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]); + + /** + * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt. + * + * Note: the stream is rewound initially, but is returned at an arbitrary + * read offset. + */ + static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag, size_t offset, size_t length, void* data); }; |