/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/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 | 118 sk_sp<SkTypeface> SkFontMgr::makeFromData(sk_sp<SkData> data, int ttcIndex) const { in makeFromData() 122 return this->onMakeFromData(std::move(data), ttcIndex); in makeFromData() 126 int ttcIndex) const { in makeFromStream() 130 return this->onMakeFromStreamIndex(std::move(stream), ttcIndex); in makeFromStream() 148 sk_sp<SkTypeface> SkFontMgr::makeFromFile(const char path[], int ttcIndex) const { in makeFromFile() 152 return this->onMakeFromFile(path, ttcIndex); in makeFromFile()
|
/external/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 54 int ttcIndex) { in subset_harfbuzz() argument 63 HBFace face(hb_face_create(to_blob(std::move(fontData)).get(), ttcIndex)); in subset_harfbuzz() 95 int ttcIndex) { in subset_sfntly() argument 109 (void)ttcIndex; in subset_sfntly() 118 int subsetFontSize = SfntlyWrapper::SubsetFont(ttcIndex, in subset_sfntly() 144 int ttcIndex) { in SkPDFSubsetFont() argument 147 return subset_harfbuzz(std::move(fontData), glyphUsage, ttcIndex); in SkPDFSubsetFont() 149 return subset_sfntly(std::move(fontData), glyphUsage, fontName, ttcIndex); in SkPDFSubsetFont() 160 int ttcIndex) { in SkPDFSubsetFont() argument 161 return subset_sfntly(std::move(fontData), glyphUsage, fontName, ttcIndex); in SkPDFSubsetFont() [all …]
|
/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/include/core/ |
D | SkFontMgr.h | 95 sk_sp<SkTypeface> makeFromData(sk_sp<SkData>, int ttcIndex = 0) const; 102 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const; 120 sk_sp<SkTypeface> makeFromFile(const char path[], int ttcIndex = 0) const; 141 virtual sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const = 0; 143 int ttcIndex) const = 0; 147 virtual sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const = 0;
|
/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_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_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()
|
/external/skia/src/ports/ |
D | SkFontMgr_custom.cpp | 65 std::unique_ptr<SkStreamAsset> SkTypeface_Stream::onOpenStream(int* ttcIndex) const { in onOpenStream() 66 *ttcIndex = fData->getIndex(); in onOpenStream() 96 std::unique_ptr<SkStreamAsset> SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream() 97 *ttcIndex = this->getIndex(); in onOpenStream() 226 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 227 return this->makeFromStream(std::make_unique<SkMemoryStream>(std::move(data)), ttcIndex); in onMakeFromData() 231 int ttcIndex) const { in onMakeFromStreamIndex() 232 return this->makeFromStream(std::move(stream), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex() 268 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 270 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile()
|
D | SkFontMgr_FontConfigInterface.cpp | 21 std::unique_ptr<SkStreamAsset> SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream() 22 *ttcIndex = this->getIdentity().fTTCIndex; in onOpenStream() 219 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 220 return this->onMakeFromStreamIndex(SkMemoryStream::Make(std::move(data)), ttcIndex); in onMakeFromData() 224 int ttcIndex) const override { in onMakeFromStreamIndex() 241 auto fontData = std::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() 279 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() 281 return stream ? this->makeFromStream(std::move(stream), ttcIndex) : nullptr; in onMakeFromFile() 294 const int ttcIndex = fontData->getIndex(); in onMakeFromFontData() local 298 if (!fScanner.scanFont(stream, ttcIndex, &name, &style, &isFixedPitch, nullptr)) { in onMakeFromFontData()
|
D | SkFontMgr_android.cpp | 92 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream() 93 *ttcIndex = fIndex; in onOpenStream() 144 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream() 145 *ttcIndex = fData->getIndex(); in onOpenStream() 195 const int ttcIndex = fontFile.fIndex; in SkFontStyleSet_Android() local 200 if (!scanner.scanFont(stream.get(), ttcIndex, in SkFontStyleSet_Android() 239 pathName, cacheFontFiles, ttcIndex, axisValues.get(), axisDefinitions.count(), in SkFontStyleSet_Android() 433 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 435 ttcIndex); in onMakeFromData() 438 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override { in onMakeFromFile() [all …]
|
D | SkFontMgr_mac_ct.cpp | 307 static SkUniqueCFRef<CTFontRef> ctfont_from_skdata(sk_sp<SkData> data, int ttcIndex) { in ctfont_from_skdata() argument 309 if (ttcIndex != 0) { in ctfont_from_skdata() 560 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override { in onMakeFromData() 561 if (ttcIndex != 0) { in onMakeFromData() 565 SkUniqueCFRef<CTFontRef> ct = ctfont_from_skdata(data, ttcIndex); in onMakeFromData() 575 int ttcIndex) const override { in onMakeFromStreamIndex() 576 if (ttcIndex != 0) { in onMakeFromStreamIndex() 584 SkUniqueCFRef<CTFontRef> ct = ctfont_from_skdata(std::move(data), ttcIndex); in onMakeFromStreamIndex() 596 int ttcIndex = args.getCollectionIndex(); in onMakeFromStreamArgs() local 597 if (ttcIndex != 0) { in onMakeFromStreamArgs() [all …]
|
D | SkFontMgr_custom.h | 68 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 85 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;
|
D | SkFontMgr_fuchsia.cpp | 180 uint32_t ttcIndex; member 183 return std::tie(bufferId, ttcIndex) == std::tie(other.bufferId, other.ttcIndex); in operator ==() 227 SkFontArguments().setCollectionIndex(id.ttcIndex), id); in CreateTypefaceFromSkData() 245 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override; 247 int ttcIndex) const override; 250 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 372 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromData(sk_sp<SkData>, int ttcIndex) const { in onMakeFromData() 378 int ttcIndex) const { in onMakeFromStreamIndex() 379 return makeFromStream(std::move(asset), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex() 387 sk_sp<SkTypeface> SkFontMgr_Fuchsia::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() [all …]
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 154 int ttcIndex) const { in onMakeFromStreamIndex() 155 return fImpl->makeFromStream(std::move(stream), ttcIndex); in onMakeFromStreamIndex() 163 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromFile(const char path[], int ttcIndex) const { in onMakeFromFile() 164 return fImpl->makeFromFile(path, ttcIndex); in onMakeFromFile() 167 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromData(sk_sp<SkData> data, int ttcIndex) const { in onMakeFromData() 168 return fImpl->makeFromData(std::move(data), ttcIndex); in onMakeFromData()
|
/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/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/utils/ |
D | SkOrderedFontMgr.h | 40 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override; 42 int ttcIndex) const override; 46 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override;
|
/external/skia/include/ports/ |
D | SkFontMgr_indirect.h | 50 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 53 sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override; 54 sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override;
|