Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: trunk/src/core/SkFontStream.h

Issue 12485002: start to plumb ttcIndex into fonthost. For now just add to SkFontStream and its callers. (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/core/SkFontStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/core/SkFontStream.h
===================================================================
--- trunk/src/core/SkFontStream.h (revision 7997)
+++ trunk/src/core/SkFontStream.h (working copy)
@@ -15,16 +15,29 @@
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);
};
« no previous file with comments | « no previous file | trunk/src/core/SkFontStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698