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

Unified Diff: trunk/include/core/SkFontHost.h

Issue 13001002: remove GetTable* APIs from SkFontHost, and rely on SkTypeface::onGetTable* (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 9 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 | « trunk/gyp/ports.gyp ('k') | trunk/src/core/SkTypeface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/include/core/SkFontHost.h
===================================================================
--- trunk/include/core/SkFontHost.h (revision 8303)
+++ trunk/include/core/SkFontHost.h (working copy)
@@ -225,43 +225,6 @@
const uint32_t* glyphIDs,
uint32_t glyphIDsCount);
- /** Return the number of tables in the font
- */
- static int CountTables(SkFontID);
-
- /** Copy into tags[] (allocated by the caller) the list of table tags in
- the font, and return the number. This will be the same as CountTables()
- or 0 if an error occured.
- */
- static int GetTableTags(SkFontID, SkFontTableTag[]);
-
- /** Given a table tag, return the size of its contents, or 0 if not present
- */
- static size_t GetTableSize(SkFontID, SkFontTableTag);
-
- /** Copy the contents of a table into data (allocated by the caller). Note
- that the contents of the table will be in their native endian order
- (which for most truetype tables is big endian). If the table tag is
- not found, or there is an error copying the data, then 0 is returned.
- If this happens, it is possible that some or all of the memory pointed
- to by data may have been written to, even though an error has occured.
-
- @param fontID the font to copy the table from
- @param tag The table tag whose contents are to be copied
- @param offset The offset in bytes into the table's contents where the
- copy should start from.
- @param length The number of bytes, starting at offset, of table data
- to copy.
- @param data storage address where the table contents are copied to
- @return the number of bytes actually copied into data. If offset+length
- exceeds the table's size, then only the bytes up to the table's
- size are actually copied, and this is the value returned. If
- offset > the table's size, or tag is not a valid table,
- then 0 is returned.
- */
- static size_t GetTableData(SkFontID fontID, SkFontTableTag tag,
- size_t offset, size_t length, void* data);
-
///////////////////////////////////////////////////////////////////////////
friend class SkTypeface;
« no previous file with comments | « trunk/gyp/ports.gyp ('k') | trunk/src/core/SkTypeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698