Searched defs:ttcIndex (Results 1 - 18 of 18) 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.cpp41 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE { return NULL; }
142 int ttcIndex; // TODO: write this to the stream? local
143 SkAutoTUnref<SkStream> rstream(this->openStream(&ttcIndex));
201 SkStream* SkTypeface::openStream(int* ttcIndex) const {
203 if (NULL == ttcIndex) {
205 ttcIndex = &ttcIndexStorage;
207 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.cpp41 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE { return NULL; }
142 int ttcIndex; // TODO: write this to the stream? local
143 SkAutoTUnref<SkStream> rstream(this->openStream(&ttcIndex));
201 SkStream* SkTypeface::openStream(int* ttcIndex) const {
203 if (NULL == ttcIndex) {
205 ttcIndex = &ttcIndexStorage;
207 return this->onOpenStream(ttcIndex);
/external/chromium_org/third_party/skia/include/device/xps/
H A DSkXPSDevice.h157 int ttcIndex; member in class:SkXPSDevice::TypefaceUse
/external/skia/include/device/xps/
H A DSkXPSDevice.h157 int ttcIndex; member in class:SkXPSDevice::TypefaceUse
/external/skia/tests/
H A DFontHostStreamTest.cpp100 int ttcIndex; local
101 SkAutoTUnref<SkStream> fontData(origTypeface->openStream(&ttcIndex));
H A DFontHostTest.cpp121 SkStream* stream, int ttcIndex) {
122 int n = SkFontStream::GetTableTags(stream, ttcIndex, NULL);
125 int n2 = SkFontStream::GetTableTags(stream, ttcIndex, array.get());
136 SkDebugf("[%d:%d] '%s'\n", ttcIndex, i, str.c_str());
138 size_t size = SkFontStream::GetTableSize(stream, ttcIndex, array[i]);
120 test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) argument
/external/chromium_org/third_party/skia/src/fonts/
H A DSkFontMgr_fontconfig.cpp268 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) { return NULL; } argument
270 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) { argument
290 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) { argument
292 return stream.get() ? this->createFromStream(stream, ttcIndex) : NULL;
/external/skia/src/fonts/
H A DSkFontMgr_fontconfig.cpp268 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) { return NULL; } argument
270 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) { argument
290 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) { argument
292 return stream.get() ? this->createFromStream(stream, ttcIndex) : NULL;
/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_win_dw.cpp139 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) SK_OVERRIDE;
140 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) SK_OVERRIDE;
141 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) SK_OVERRIDE;
564 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
1198 int ttcIndex; local
1199 SkAutoTUnref<SkStream> stream(this->openStream(&ttcIndex));
1200 return stream.get() ? SkFontStream::GetTableTags(stream, ttcIndex, tags) : 0;
1275 static SkTypeface* create_from_stream(SkStream* stream, int ttcIndex) { argument
1314 if (faceIndex == ttcIndex) {
1325 SkStream* DWriteFontTypeface::onOpenStream(int* ttcIndex) cons
1722 onCreateFromStream(SkStream* stream, int ttcIndex) argument
1726 onCreateFromData(SkData* data, int ttcIndex) argument
1731 onCreateFromFile(const char path[], int ttcIndex) argument
[all...]
/external/skia/src/ports/
H A DSkFontHost_win_dw.cpp139 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) SK_OVERRIDE;
140 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) SK_OVERRIDE;
141 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) SK_OVERRIDE;
564 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
1198 int ttcIndex; local
1199 SkAutoTUnref<SkStream> stream(this->openStream(&ttcIndex));
1200 return stream.get() ? SkFontStream::GetTableTags(stream, ttcIndex, tags) : 0;
1275 static SkTypeface* create_from_stream(SkStream* stream, int ttcIndex) { argument
1314 if (faceIndex == ttcIndex) {
1325 SkStream* DWriteFontTypeface::onOpenStream(int* ttcIndex) cons
1722 onCreateFromStream(SkStream* stream, int ttcIndex) argument
1726 onCreateFromData(SkData* data, int ttcIndex) argument
1731 onCreateFromFile(const char path[], int ttcIndex) argument
[all...]
/external/chromium_org/third_party/skia/src/device/xps/
H A DSkXPSDevice.cpp341 int ttcCount = (current->ttcIndex + 1);
354 current->ttcIndex,
2060 int ttcIndex; local
2061 SkStream* fontData = typeface->openStream(&ttcIndex);
2093 newTypefaceUse.ttcIndex = isTTC ? ttcIndex : -1;
2120 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,
2060 int ttcIndex; local
2061 SkStream* fontData = typeface->openStream(&ttcIndex);
2093 newTypefaceUse.ttcIndex = isTTC ? ttcIndex : -1;
2120 HRM(glyphs->SetFontFaceIndex(font->ttcIndex), "Could not set glyph font face index.");

Completed in 1294 milliseconds