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

/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, nullptr);
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...]
/external/skia/include/device/xps/
H A DSkXPSDevice.h144 int ttcIndex; member in class:SkXPSDevice::TypefaceUse
/external/skia/tests/
H A DFontHostStreamTest.cpp99 int ttcIndex; local
100 SkAutoTDelete<SkStreamAsset> fontData(origTypeface->openStream(&ttcIndex));
H A DFontHostTest.cpp114 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { argument
115 int n = SkFontStream::GetTableTags(stream, ttcIndex, nullptr);
118 int n2 = SkFontStream::GetTableTags(stream, ttcIndex, array.get());
129 SkDebugf("[%d:%d] '%s'\n", ttcIndex, i, str.c_str());
131 size_t size = SkFontStream::GetTableSize(stream, ttcIndex, array[i]);
/external/skia/src/ports/
H A DSkFontMgr_android.cpp90 SkStreamAsset* onOpenStream(int* ttcIndex) const override {
91 *ttcIndex = fIndex;
126 SkStreamAsset* onOpenStream(int* ttcIndex) const override {
127 *ttcIndex = fData->getIndex();
164 const int ttcIndex = fontFile.fIndex; local
169 if (!scanner.scanFont(stream.get(), ttcIndex,
206 pathName, cacheFontFiles, ttcIndex, axisValues.get(), axisDefinitions.count(),
435 SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override {
436 return this->createFromStream(new SkMemoryStream(data), ttcIndex);
439 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) cons
[all...]
H A DSkTypeface_win_dw.cpp194 int ttcIndex; local
195 SkAutoTDelete<SkStream> stream(this->openStream(&ttcIndex));
196 return stream.get() ? SkFontStream::GetTableTags(stream, ttcIndex, tags) : 0;
218 SkStreamAsset* DWriteFontTypeface::onOpenStream(int* ttcIndex) const {
219 *ttcIndex = fDWriteFontFace->GetIndex();
H A DSkFontHost_FreeType.cpp1609 FT_Face SkTypeface_FreeType::Scanner::openFace(SkStream* stream, int ttcIndex, argument
1637 if (FT_Open_Face(fLibrary, &args, ttcIndex, &face)) {
1660 SkStream* stream, int ttcIndex,
1666 FT_Face face = this->openFace(stream, ttcIndex, &streamRec);
1659 scanFont( SkStream* stream, int ttcIndex, SkString* name, SkFontStyle* style, bool* isFixedPitch, AxisDefinitions* axes) const argument
/external/skia/src/device/xps/
H A DSkXPSDevice.cpp358 int ttcCount = (current->ttcIndex + 1);
371 current->ttcIndex,
1898 int ttcIndex; local
1899 SkStream* fontData = typeface->openStream(&ttcIndex);
1931 newTypefaceUse.ttcIndex = isTTC ? ttcIndex : -1;
1958 HRM(glyphs->SetFontFaceIndex(font->ttcIndex), "Could not set glyph font face index.");

Completed in 172 milliseconds