Searched defs:ttcIndex (Results 1 - 16 of 16) sorted by relevance

/external/chromium_org/third_party/skia/src/core/
H A DSkFontStream.h28 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
36 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { argument
45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, NULL);
H A DSkFontHost.cpp164 SkTypeface* SkFontMgr::createFromData(SkData* data, int ttcIndex) { argument
168 return this->onCreateFromData(data, ttcIndex);
171 SkTypeface* SkFontMgr::createFromStream(SkStream* stream, int ttcIndex) { argument
175 return this->onCreateFromStream(stream, ttcIndex);
178 SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) { argument
182 return this->onCreateFromFile(path, ttcIndex);
H A DSkFontStream.cpp54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { argument
55 SkASSERT(ttcIndex >= 0);
71 if ((unsigned)ttcIndex >= count) {
75 if (ttcIndex > 0) { // need to read more of the shared header
77 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t);
84 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]);
113 bool init(SkStream* stream, int ttcIndex) { argument
117 fCount = count_tables(stream, ttcIndex, &offsetToDir);
155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, argument
158 if (!header.init(stream, ttcIndex)) {
170 GetTableData(SkStream* stream, int ttcIndex, SkFontTableTag tag, size_t offset, size_t length, void* data) argument
[all...]
H A DSkTypeface.cpp106 int ttcIndex; // TODO: write this to the stream? local
107 SkAutoTUnref<SkStream> rstream(this->openStream(&ttcIndex));
165 SkStream* SkTypeface::openStream(int* ttcIndex) const {
167 if (NULL == ttcIndex) {
169 ttcIndex = &ttcIndexStorage;
171 return this->onOpenStream(ttcIndex);
/external/skia/src/core/
H A DSkFontStream.h28 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
36 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { argument
45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, NULL);
H A DSkFontHost.cpp164 SkTypeface* SkFontMgr::createFromData(SkData* data, int ttcIndex) { argument
168 return this->onCreateFromData(data, ttcIndex);
171 SkTypeface* SkFontMgr::createFromStream(SkStream* stream, int ttcIndex) { argument
175 return this->onCreateFromStream(stream, ttcIndex);
178 SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) { argument
182 return this->onCreateFromFile(path, ttcIndex);
H A DSkFontStream.cpp54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { argument
55 SkASSERT(ttcIndex >= 0);
71 if ((unsigned)ttcIndex >= count) {
75 if (ttcIndex > 0) { // need to read more of the shared header
77 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t);
84 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]);
113 bool init(SkStream* stream, int ttcIndex) { argument
117 fCount = count_tables(stream, ttcIndex, &offsetToDir);
155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, argument
158 if (!header.init(stream, ttcIndex)) {
170 GetTableData(SkStream* stream, int ttcIndex, SkFontTableTag tag, size_t offset, size_t length, void* data) argument
[all...]
H A DSkTypeface.cpp106 int ttcIndex; // TODO: write this to the stream? local
107 SkAutoTUnref<SkStream> rstream(this->openStream(&ttcIndex));
165 SkStream* SkTypeface::openStream(int* ttcIndex) const {
167 if (NULL == ttcIndex) {
169 ttcIndex = &ttcIndexStorage;
171 return this->onOpenStream(ttcIndex);
/external/chromium_org/third_party/skia/include/device/xps/
H A DSkXPSDevice.h152 int ttcIndex; member in class:SkXPSDevice::TypefaceUse
/external/skia/include/device/xps/
H A DSkXPSDevice.h152 int ttcIndex; member in class:SkXPSDevice::TypefaceUse
/external/skia/tests/
H A DFontHostStreamTest.cpp101 int ttcIndex; local
102 SkStream* fontData = origTypeface->openStream(&ttcIndex);
H A DFontHostTest.cpp76 SkStream* stream, int ttcIndex) {
77 int n = SkFontStream::GetTableTags(stream, ttcIndex, NULL);
80 int n2 = SkFontStream::GetTableTags(stream, ttcIndex, array.get());
91 SkDebugf("[%d:%d] '%s'\n", ttcIndex, i, str.c_str());
93 size_t size = SkFontStream::GetTableSize(stream, ttcIndex, array[i]);
75 test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) argument
/external/chromium_org/third_party/skia/src/fonts/
H A DSkFontMgr_fontconfig.cpp264 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) { return NULL; } argument
266 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) { argument
281 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) { argument
283 return stream.get() ? this->createFromStream(stream, ttcIndex) : NULL;
/external/skia/src/fonts/
H A DSkFontMgr_fontconfig.cpp264 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) { return NULL; } argument
266 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) { argument
281 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) { argument
283 return stream.get() ? this->createFromStream(stream, ttcIndex) : NULL;
/external/chromium_org/third_party/skia/src/device/xps/
H A DSkXPSDevice.cpp341 int ttcCount = (current->ttcIndex + 1);
354 current->ttcIndex,
2052 int ttcIndex; local
2053 SkStream* fontData = typeface->openStream(&ttcIndex);
2084 newTypefaceUse.ttcIndex = isTTC ? ttcIndex : -1;
2111 HRM(glyphs->SetFontFaceIndex(font->ttcIndex), "Could not set glyph font face index.");
/external/skia/src/device/xps/
H A DSkXPSDevice.cpp341 int ttcCount = (current->ttcIndex + 1);
354 current->ttcIndex,
2052 int ttcIndex; local
2053 SkStream* fontData = typeface->openStream(&ttcIndex);
2084 newTypefaceUse.ttcIndex = isTTC ? ttcIndex : -1;
2111 HRM(glyphs->SetFontFaceIndex(font->ttcIndex), "Could not set glyph font face index.");

Completed in 257 milliseconds