/external/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 44 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() argument 53 if (!fontData) { in SkPDFSubsetFont() 56 HBFace face(hb_face_create(to_blob(std::move(fontData)).get(), ttcIndex)); in SkPDFSubsetFont() 81 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() argument 103 fontData->bytes(), in SkPDFSubsetFont() 104 fontData->size(), in SkPDFSubsetFont() 111 fontData->bytes(), in SkPDFSubsetFont() 112 fontData->size(), in SkPDFSubsetFont()
|
D | SkPDFSubsetFont.h | 9 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData,
|
/external/skqp/src/pdf/ |
D | SkPDFSubsetFont.cpp | 11 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() argument 28 fontData->bytes(), in SkPDFSubsetFont() 29 fontData->size(), in SkPDFSubsetFont() 36 fontData->bytes(), in SkPDFSubsetFont() 37 fontData->size(), in SkPDFSubsetFont()
|
D | SkPDFSubsetFont.h | 12 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData,
|
/external/skia/tools/fonts/ |
D | SkTestTypeface.cpp | 33 SkTestFont::SkTestFont(const SkTestFontData& fontData) in SkTestFont() argument 35 , fCharCodes(fontData.fCharCodes) in SkTestFont() 36 , fCharCodesCount(fontData.fCharCodes ? fontData.fCharCodesCount : 0) in SkTestFont() 37 , fWidths(fontData.fWidths) in SkTestFont() 38 , fMetrics(fontData.fMetrics) in SkTestFont() 39 , fName(fontData.fName) in SkTestFont() 42 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
|
/external/skqp/tools/fonts/ |
D | SkTestTypeface.cpp | 33 SkTestFont::SkTestFont(const SkTestFontData& fontData) in SkTestFont() argument 35 , fCharCodes(fontData.fCharCodes) in SkTestFont() 36 , fCharCodesCount(fontData.fCharCodes ? fontData.fCharCodesCount : 0) in SkTestFont() 37 , fWidths(fontData.fWidths) in SkTestFont() 38 , fMetrics(fontData.fMetrics) in SkTestFont() 39 , fName(fontData.fName) in SkTestFont() 42 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
|
/external/skia/tools/ |
D | remote_demo.cpp | 143 std::vector<uint8_t> fontData; in push_font_data() local 144 strikeServer->writeStrikeData(&fontData); in push_font_data() 145 auto data = SkData::MakeWithoutCopy(fontData.data(), fontData.size()); in push_font_data() 180 auto fontData = read_SkData(readFd); in final_draw() local 181 if (fontData && !fontData->isEmpty()) { in final_draw() 182 if (!client->readStrikeData(fontData->data(), fontData->size())) in final_draw()
|
/external/skqp/tools/ |
D | remote_demo.cpp | 143 std::vector<uint8_t> fontData; in push_font_data() local 144 strikeServer->writeStrikeData(&fontData); in push_font_data() 145 auto data = SkData::MakeWithoutCopy(fontData.data(), fontData.size()); in push_font_data() 180 auto fontData = read_SkData(readFd); in final_draw() local 181 if (fontData && !fontData->isEmpty()) { in final_draw() 182 if (!client->readStrikeData(fontData->data(), fontData->size())) in final_draw()
|
/external/skia/src/sfnt/ |
D | SkOTUtils.cpp | 39 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument 43 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont() 52 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont() 63 if (!fontData->rewind()) { in RenameFont() 86 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() 92 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont() 95 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont() 98 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
|
/external/skqp/src/sfnt/ |
D | SkOTUtils.cpp | 39 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument 43 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont() 52 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont() 63 if (!fontData->rewind()) { in RenameFont() 86 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() 92 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont() 95 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont() 98 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_docpagedata.cpp | 80 CPDF_CountedFont* fontData = it.second; in Clear() local 81 if (!fontData->get()) in Clear() 83 if (bForceRelease || fontData->use_count() < 2) { in Clear() 84 fontData->clear(); in Clear() 153 CPDF_CountedFont* fontData = it.second; in GetStandardFont() local 154 CPDF_Font* pFont = fontData->get(); in GetStandardFont() 170 return fontData->AddRef(); in GetStandardFont() 186 CPDF_CountedFont* fontData = new CPDF_CountedFont(std::move(pFont)); in GetStandardFont() local 187 m_FontMap[pDict] = fontData; in GetStandardFont() 188 return fontData->AddRef(); in GetStandardFont()
|
/external/skqp/tests/ |
D | FontHostStreamTest.cpp | 91 std::unique_ptr<SkStreamAsset> fontData(typeface->openStream(&ttcIndex)); in DEF_TEST() local 92 if (!fontData) { in DEF_TEST() 98 sk_sp<SkTypeface> streamTypeface(SkTypeface::MakeFromStream(std::move(fontData))); in DEF_TEST()
|
D | TypefaceTest.cpp | 124 std::unique_ptr<SkFontData> fontData = descD.detachFontData(); in DEF_TEST() local 125 if (!fontData) { in DEF_TEST() 130 if (fontData->getAxisCount() != 1) { in DEF_TEST() 135 REPORTER_ASSERT(reporter, fontData->getAxis()[0] == -SK_Fixed1); in DEF_TEST()
|
/external/skia/tests/ |
D | FontHostStreamTest.cpp | 91 std::unique_ptr<SkStreamAsset> fontData = typeface->openStream(&ttcIndex); in DEF_TEST() local 92 if (!fontData) { in DEF_TEST() 98 sk_sp<SkTypeface> streamTypeface(SkTypeface::MakeFromStream(std::move(fontData))); in DEF_TEST()
|
D | TypefaceTest.cpp | 124 std::unique_ptr<SkFontData> fontData = descD.detachFontData(); in DEF_TEST() local 125 if (!fontData) { in DEF_TEST() 130 if (fontData->getAxisCount() != 1) { in DEF_TEST() 135 REPORTER_ASSERT(reporter, fontData->getAxis()[0] == -SK_Fixed1); in DEF_TEST()
|
/external/skqp/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 252 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local 253 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex() 282 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local 286 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamArgs()
|
D | SkFontMgr_custom.cpp | 57 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream() argument 60 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream() 61 , fData(std::move(fontData)) in SkTypeface_Stream()
|
D | SkFontMgr_fuchsia.cpp | 115 SkTypeface_Fuchsia(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, in SkTypeface_Fuchsia() argument 117 : SkTypeface_Stream(std::move(fontData), style, isFixedPitch, in SkTypeface_Fuchsia() 144 auto fontData = std::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in CreateTypefaceFromSkStream() local 146 return sk_make_sp<SkTypeface_Fuchsia>(std::move(fontData), style, isFixedPitch, name, id); in CreateTypefaceFromSkStream()
|
/external/skia/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 251 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local 252 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex() 281 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local 285 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamArgs()
|
D | SkFontMgr_custom.cpp | 57 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream() argument 60 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream() 61 , fData(std::move(fontData)) in SkTypeface_Stream()
|
D | SkFontMgr_fuchsia.cpp | 115 SkTypeface_Fuchsia(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, in SkTypeface_Fuchsia() argument 117 : SkTypeface_Stream(std::move(fontData), style, isFixedPitch, in SkTypeface_Fuchsia() 144 auto fontData = std::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in CreateTypefaceFromSkStream() local 146 return sk_make_sp<SkTypeface_Fuchsia>(std::move(fontData), style, isFixedPitch, name, id); in CreateTypefaceFromSkStream()
|
/external/skqp/src/utils/ |
D | SkWhitelistTypefaces.cpp | 66 std::unique_ptr<SkFontData> fontData = tf->makeFontData(); in compute_checksum() local 67 if (!fontData) { in compute_checksum() 70 SkStreamAsset* fontStream = fontData->getStream(); in compute_checksum()
|
/external/skia/src/utils/ |
D | SkWhitelistTypefaces.cpp | 66 std::unique_ptr<SkFontData> fontData = tf->makeFontData(); in compute_checksum() local 67 if (!fontData) { in compute_checksum() 70 SkStreamAsset* fontStream = fontData->getStream(); in compute_checksum()
|
/external/skqp/experimental/canvaskit/canvaskit/ |
D | node.example.js | 13 let fontData = fs.readFileSync(path.join(__dirname, './Roboto-Regular.woff')); variable 14 canvas.loadFont(fontData, {
|
/external/skia/modules/canvaskit/canvaskit/ |
D | node.example.js | 13 let fontData = fs.readFileSync(path.join(__dirname, './Roboto-Regular.woff')); variable 14 canvas.loadFont(fontData, {
|