/external/skia/src/core/ |
SkFontStream.h | 28 * @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) { 45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, nullptr);
|
SkFontStream.cpp | 54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { 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) { 117 fCount = count_tables(stream, ttcIndex, &offsetToDir); 155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, 158 if (!header.init(stream, ttcIndex)) { [all...] |
SkFontMgr.cpp | 121 SkTypeface* SkFontMgr::createFromData(SkData* data, int ttcIndex) const { 125 return this->onCreateFromData(data, ttcIndex); 128 SkTypeface* SkFontMgr::createFromStream(SkStreamAsset* stream, int ttcIndex) const { 132 return this->onCreateFromStream(stream, ttcIndex); 161 SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) const { 165 return this->onCreateFromFile(path, ttcIndex);
|
SkTypeface.cpp | 42 SkStreamAsset* onOpenStream(int* ttcIndex) const override { return nullptr; } 218 SkStreamAsset* SkTypeface::openStream(int* ttcIndex) const { 220 if (nullptr == ttcIndex) { 222 ttcIndex = &ttcIndexStorage; 224 return this->onOpenStream(ttcIndex);
|
/frameworks/base/graphics/java/android/graphics/ |
FontFamily.java | 71 public boolean addFont(String path, int ttcIndex) { 76 return nAddFont(mNativePtr, fontBuffer, ttcIndex); 83 public boolean addFontWeightStyle(ByteBuffer font, int ttcIndex, List<FontListParser.Axis> axes, 85 return nAddFontWeightStyle(mNativePtr, font, ttcIndex, axes, weight, style); 94 private static native boolean nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex); 96 int ttcIndex, List<FontListParser.Axis> listOfAxis,
|
FontListParser.java | 56 Font(String fontName, int ttcIndex, List<Axis> axes, int weight, boolean isItalic) { 58 this.ttcIndex = ttcIndex; 64 public int ttcIndex;
|
/external/skia/include/ports/ |
SkFontMgr.h | 96 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const; 103 SkTypeface* createFromStream(SkStreamAsset*, int ttcIndex = 0) const; 165 SkTypeface* createFromFile(const char path[], int ttcIndex = 0) const; 192 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0; 193 virtual SkTypeface* onCreateFromStream(SkStreamAsset*, int ttcIndex) const = 0; 197 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0;
|
SkFontMgr_indirect.h | 53 SkTypeface* onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const override; 54 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override; 55 SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override; 90 * This cache is essentially { dataId: { ttcIndex: typeface } }
|
/external/skia/src/fonts/ |
SkGScalerContext.h | 29 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
|
SkRandomScalerContext.h | 34 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
|
SkFontMgr_indirect.cpp | 175 SkTypeface* SkFontMgr_Indirect::onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const { 176 return fImpl->createFromStream(stream, ttcIndex); 179 SkTypeface* SkFontMgr_Indirect::onCreateFromFile(const char path[], int ttcIndex) const { 180 return fImpl->createFromFile(path, ttcIndex); 183 SkTypeface* SkFontMgr_Indirect::onCreateFromData(SkData* data, int ttcIndex) const { 184 return fImpl->createFromData(data, ttcIndex);
|
SkFontMgr_fontconfig.cpp | 293 SkTypeface* onCreateFromData(SkData*, int ttcIndex) const override { return nullptr; } 295 SkTypeface* onCreateFromStream(SkStreamAsset* bareStream, int ttcIndex) const override { 316 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override { 318 return stream.get() ? this->createFromStream(stream.detach(), ttcIndex) : nullptr;
|
SkTestScalerContext.h | 76 SkStreamAsset* onOpenStream(int* ttcIndex) const override {
|
/frameworks/base/libs/hwui/hwui/ |
MinikinSkia.h | 32 int ttcIndex);
|
MinikinSkia.cpp | 26 int ttcIndex) : 28 mFontSize(fontSize), mTtcIndex(ttcIndex) {
|
/external/skia/src/ports/ |
SkFontMgr_custom.cpp | 82 SkStreamAsset* onOpenStream(int* ttcIndex) const override { 83 *ttcIndex = this->getIndex(); 103 SkStreamAsset* onOpenStream(int* ttcIndex) const override { 104 *ttcIndex = this->getIndex(); 285 SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override { 286 return this->createFromStream(new SkMemoryStream(data), ttcIndex); 289 SkTypeface* onCreateFromStream(SkStreamAsset* bareStream, int ttcIndex) const override { 298 if (fScanner.scanFont(stream, ttcIndex, &name, &style, &isFixedPitch, nullptr)) { 300 ttcIndex); 306 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override [all...] |
SkFontHost_FreeType_common.h | 57 bool scanFont(SkStream* stream, int ttcIndex, 67 FT_Face openFace(SkStream* stream, int ttcIndex, FT_Stream ftStream) const;
|
SkFontMgr_android.cpp | 90 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; 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) const override [all...] |
SkFontConfigTypeface.h | 61 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
|
SkFontMgr_fontconfig.cpp | 400 SkStreamAsset* onOpenStream(int* ttcIndex) const override { 401 *ttcIndex = fData->getIndex(); 435 SkStreamAsset* onOpenStream(int* ttcIndex) const override { 437 *ttcIndex = get_int(fPattern, FC_INDEX, 0); 820 SkTypeface* onCreateFromStream(SkStreamAsset* bareStream, int ttcIndex) const override { 829 if (!fScanner.scanFont(stream, ttcIndex, nullptr, &style, &isFixedWidth, nullptr)) { 833 return new SkTypeface_stream(new SkFontData(stream.detach(), ttcIndex, nullptr, 0), style, [all...] |
SkFontHost_fontconfig.cpp | 209 SkStreamAsset* FontConfigTypeface::onOpenStream(int* ttcIndex) const { 213 *ttcIndex = 0; 222 *ttcIndex = this->getIdentity().fTTCIndex;
|
/frameworks/base/core/jni/android/graphics/ |
FontFamily.cpp | 57 size_t fontSize, int ttcIndex) { 58 MinikinFont* minikinFont = new MinikinFontSkia(face, fontData, fontSize, ttcIndex); 88 jint ttcIndex) { 106 params.setCollectionIndex(ttcIndex); 115 return addSkTypeface(fontFamily, face, fontPtr, (size_t)fontSize, ttcIndex); 129 jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) { 171 params.setCollectionIndex(ttcIndex); 181 MinikinFont* minikinFont = new MinikinFontSkia(face, fontPtr, (size_t)fontSize, ttcIndex); 223 return addSkTypeface(fontFamily, face, buf, bufSize, /* ttcIndex */ 0);
|
/external/skia/tests/ |
FontHostStreamTest.cpp | 99 int ttcIndex; 100 SkAutoTDelete<SkStreamAsset> fontData(origTypeface->openStream(&ttcIndex));
|
FontHostTest.cpp | 114 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { 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/include/core/ |
SkTypeface.h | 280 * If ttcIndex is not null, it is set to the TrueTypeCollection index 285 SkStreamAsset* openStream(int* ttcIndex) const; 346 virtual SkStreamAsset* onOpenStream(int* ttcIndex) const = 0;
|