/external/skia/src/core/ |
D | SkFontStream.cpp | 55 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { in count_tables() argument 56 SkASSERT(ttcIndex >= 0); in count_tables() 72 if ((unsigned)ttcIndex >= count) { in count_tables() 76 if (ttcIndex > 0) { // need to read more of the shared header in count_tables() 78 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t); in count_tables() 85 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]); in count_tables() 114 bool init(SkStream* stream, int ttcIndex) { in init() 118 fCount = count_tables(stream, ttcIndex, &offsetToDir); in init() 156 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, in GetTableTags() argument 159 if (!header.init(stream, ttcIndex)) { in GetTableTags() [all …]
|
D | SkFontStream.h | 33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]); 41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag, 44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { in GetTableSize() argument 45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, nullptr); in GetTableSize()
|
D | SkFontMgr.cpp | 126 sk_sp<SkTypeface> SkFontMgr::makeFromData(sk_sp<SkData> data, int ttcIndex) const { in makeFromData() 130 return this->onMakeFromData(std::move(data), ttcIndex); in makeFromData() 134 int ttcIndex) const { in makeFromStream() 138 return this->onMakeFromStreamIndex(std::move(stream), ttcIndex); in makeFromStream() 156 sk_sp<SkTypeface> SkFontMgr::makeFromFile(const char path[], int ttcIndex) const { in makeFromFile() 160 return this->onMakeFromFile(path, ttcIndex); in makeFromFile()
|
/external/skqp/src/core/ |
D | SkFontStream.cpp | 55 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { in count_tables() argument 56 SkASSERT(ttcIndex >= 0); in count_tables() 72 if ((unsigned)ttcIndex >= count) { in count_tables() 76 if (ttcIndex > 0) { // need to read more of the shared header in count_tables() 78 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t); in count_tables() 85 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]); in count_tables() 114 bool init(SkStream* stream, int ttcIndex) { in init() 118 fCount = count_tables(stream, ttcIndex, &offsetToDir); in init() 156 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, in GetTableTags() argument 159 if (!header.init(stream, ttcIndex)) { in GetTableTags() [all …]
|
D | SkFontStream.h | 33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]); 41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag, 44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { in GetTableSize() argument 45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, nullptr); in GetTableSize()
|
D | SkFontMgr.cpp | 126 sk_sp<SkTypeface> SkFontMgr::makeFromData(sk_sp<SkData> data, int ttcIndex) const { in makeFromData() 130 return this->onMakeFromData(std::move(data), ttcIndex); in makeFromData() 134 int ttcIndex) const { in makeFromStream() 138 return this->onMakeFromStreamIndex(std::move(stream), ttcIndex); in makeFromStream() 156 sk_sp<SkTypeface> SkFontMgr::makeFromFile(const char path[], int ttcIndex) const { in makeFromFile() 160 return this->onMakeFromFile(path, ttcIndex); in makeFromFile()
|
/external/skia/include/core/ |
D | SkFontMgr.h | 97 sk_sp<SkTypeface> makeFromData(sk_sp<SkData>, int ttcIndex = 0) const; 104 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const; 122 sk_sp<SkTypeface> makeFromFile(const char path[], int ttcIndex = 0) const; 145 virtual sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const = 0; 147 int ttcIndex) const = 0; 151 virtual sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const = 0;
|
/external/skqp/include/core/ |
D | SkFontMgr.h | 97 sk_sp<SkTypeface> makeFromData(sk_sp<SkData>, int ttcIndex = 0) const; 104 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const; 122 sk_sp<SkTypeface> makeFromFile(const char path[], int ttcIndex = 0) const; 145 virtual sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const = 0; 147 int ttcIndex) const = 0; 151 virtual sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const = 0;
|
/external/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 64 std::unique_ptr<SkStreamAsset> SkTypeface_Stream::onOpenStream(int* ttcIndex) const { in onOpenStream() 65 *ttcIndex = fData->getIndex(); in onOpenStream() 95 std::unique_ptr<SkStreamAsset> SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream() 96 *ttcIndex = this->getIndex(); in onOpenStream() 229 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 230 return this->makeFromStream(skstd::make_unique<SkMemoryStream>(std::move(data)), ttcIndex); in onMakeFromData() 234 int ttcIndex) const { in onMakeFromStreamIndex() 235 return this->makeFromStream(std::move(stream), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex() 271 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 273 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile()
|
D | SkFontMgr_android.cpp | 93 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream() 94 *ttcIndex = fIndex; in onOpenStream() 146 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream() 147 *ttcIndex = fData->getIndex(); in onOpenStream() 197 const int ttcIndex = fontFile.fIndex; in SkFontStyleSet_Android() local 202 if (!scanner.scanFont(stream.get(), ttcIndex, in SkFontStyleSet_Android() 241 pathName, cacheFontFiles, ttcIndex, axisValues.get(), axisDefinitions.count(), in SkFontStyleSet_Android() 448 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 450 ttcIndex); in onMakeFromData() 453 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() [all …]
|
D | SkFontMgr_fuchsia.cpp | 104 uint32_t ttcIndex; member 107 return std::tie(bufferId, ttcIndex) == std::tie(other.bufferId, other.ttcIndex); in operator ==() 151 SkFontArguments().setCollectionIndex(id.ttcIndex), id); in CreateTypefaceFromSkData() 170 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override; 172 int ttcIndex) const override; 175 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 297 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromData(sk_sp<SkData>, int ttcIndex) const { in onMakeFromData() 303 int ttcIndex) const { in onMakeFromStreamIndex() 304 return makeFromStream(std::move(asset), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex() 312 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() [all …]
|
D | SkFontMgr_FontConfigInterface.cpp | 22 std::unique_ptr<SkStreamAsset> SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream() 23 *ttcIndex = this->getIdentity().fTTCIndex; in onOpenStream() 229 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 230 return this->onMakeFromStreamIndex(SkMemoryStream::Make(std::move(data)), ttcIndex); in onMakeFromData() 234 int ttcIndex) const override { in onMakeFromStreamIndex() 251 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() 289 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() 291 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile()
|
D | SkFontMgr_custom.h | 67 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 84 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 148 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; 149 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 152 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override;
|
/external/skqp/src/ports/ |
D | SkFontMgr_custom.cpp | 64 SkStreamAsset* SkTypeface_Stream::onOpenStream(int* ttcIndex) const { in onOpenStream() 65 *ttcIndex = fData->getIndex(); in onOpenStream() 95 SkStreamAsset* SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream() 96 *ttcIndex = this->getIndex(); in onOpenStream() 229 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 230 return this->makeFromStream(skstd::make_unique<SkMemoryStream>(std::move(data)), ttcIndex); in onMakeFromData() 234 int ttcIndex) const { in onMakeFromStreamIndex() 235 return this->makeFromStream(std::move(stream), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex() 271 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 273 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile()
|
D | SkFontMgr_android.cpp | 93 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream() 94 *ttcIndex = fIndex; in onOpenStream() 146 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream() 147 *ttcIndex = fData->getIndex(); in onOpenStream() 197 const int ttcIndex = fontFile.fIndex; in SkFontStyleSet_Android() local 202 if (!scanner.scanFont(stream.get(), ttcIndex, in SkFontStyleSet_Android() 241 pathName, cacheFontFiles, ttcIndex, axisValues.get(), axisDefinitions.count(), in SkFontStyleSet_Android() 448 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 450 ttcIndex); in onMakeFromData() 453 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() [all …]
|
D | SkFontMgr_fuchsia.cpp | 104 uint32_t ttcIndex; member 107 return std::tie(bufferId, ttcIndex) == std::tie(other.bufferId, other.ttcIndex); in operator ==() 151 SkFontArguments().setCollectionIndex(id.ttcIndex), id); in CreateTypefaceFromSkData() 170 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override; 172 int ttcIndex) const override; 175 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 301 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromData(sk_sp<SkData>, int ttcIndex) const { 307 int ttcIndex) const { 308 return makeFromStream(std::move(asset), SkFontArguments().setCollectionIndex(ttcIndex)); 316 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromFile(const char path[], int ttcIndex) const { [all …]
|
D | SkFontMgr_FontConfigInterface.cpp | 22 SkStreamAsset* SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream() 23 *ttcIndex = this->getIdentity().fTTCIndex; in onOpenStream() 230 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 231 return this->onMakeFromStreamIndex(SkMemoryStream::Make(std::move(data)), ttcIndex); in onMakeFromData() 235 int ttcIndex) const override { in onMakeFromStreamIndex() 252 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() 290 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() 292 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile()
|
D | SkFontMgr_custom.h | 67 SkStreamAsset* onOpenStream(int* ttcIndex) const override; 84 SkStreamAsset* onOpenStream(int* ttcIndex) const override; 148 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override; 149 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 152 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override;
|
D | SkFontMgr_fontconfig.cpp | 438 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream() 439 *ttcIndex = fData->getIndex(); in onOpenStream() 486 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream() 488 *ttcIndex = get_int(fPattern, FC_INDEX, 0); in onOpenStream() 927 int ttcIndex) const override { in onMakeFromStreamIndex() 936 if (!fScanner.scanFont(stream.get(), ttcIndex, &name, &style, &isFixedWidth, nullptr)) { in onMakeFromStreamIndex() 940 auto data = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() 968 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 969 return this->makeFromStream(skstd::make_unique<SkMemoryStream>(std::move(data)), ttcIndex); in onMakeFromData() 972 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 47 int ttcIndex) { in SkPDFSubsetFont() argument 56 HBFace face(hb_face_create(to_blob(std::move(fontData)).get(), ttcIndex)); in SkPDFSubsetFont() 84 int ttcIndex) { in SkPDFSubsetFont() argument 101 (void)ttcIndex; in SkPDFSubsetFont() 110 int subsetFontSize = SfntlyWrapper::SubsetFont(ttcIndex, in SkPDFSubsetFont()
|
/external/skqp/src/fonts/ |
D | SkFontMgr_indirect.cpp | 162 int ttcIndex) const { in onMakeFromStreamIndex() 163 return fImpl->makeFromStream(std::move(stream), ttcIndex); in onMakeFromStreamIndex() 166 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 167 return fImpl->makeFromFile(path, ttcIndex); in onMakeFromFile() 170 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 171 return fImpl->makeFromData(std::move(data), ttcIndex); in onMakeFromData()
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 162 int ttcIndex) const { in onMakeFromStreamIndex() 163 return fImpl->makeFromStream(std::move(stream), ttcIndex); in onMakeFromStreamIndex() 166 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 167 return fImpl->makeFromFile(path, ttcIndex); in onMakeFromFile() 170 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 171 return fImpl->makeFromData(std::move(data), ttcIndex); in onMakeFromData()
|
/external/skqp/src/pdf/ |
D | SkPDFSubsetFont.cpp | 14 int ttcIndex) { in SkPDFSubsetFont() argument 26 (void)ttcIndex; in SkPDFSubsetFont() 35 int subsetFontSize = SfntlyWrapper::SubsetFont(ttcIndex, in SkPDFSubsetFont()
|
/external/skia/include/ports/ |
D | SkFontMgr_indirect.h | 53 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 54 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 55 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override;
|
/external/skqp/include/ports/ |
D | SkFontMgr_indirect.h | 53 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 54 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 55 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override;
|