/third_party/flutter/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 51 static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData, in subset_harfbuzz() argument 59 if (!fontData) { in subset_harfbuzz() 62 HBFace face(hb_face_create(to_blob(std::move(fontData)).get(), ttcIndex)); in subset_harfbuzz() 90 static sk_sp<SkData> subset_sfntly(sk_sp<SkData> fontData, in subset_sfntly() argument 112 fontData->bytes(), in subset_sfntly() 113 fontData->size(), in subset_sfntly() 120 fontData->bytes(), in subset_sfntly() 121 fontData->size(), in subset_sfntly() 141 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() argument 148 return subset_harfbuzz(std::move(fontData), glyphUsage, ttcIndex); in SkPDFSubsetFont() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 79 static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData, in subset_harfbuzz() argument 82 if (!fontData) { in subset_harfbuzz() 85 HBFace face(hb_face_create(to_blob(std::move(fontData)).get(), ttcIndex)); in subset_harfbuzz() 113 static sk_sp<SkData> subset_sfntly(sk_sp<SkData> fontData, in subset_sfntly() argument 132 fontData->bytes(), in subset_sfntly() 133 fontData->size(), in subset_sfntly() 140 fontData->bytes(), in subset_sfntly() 141 fontData->size(), in subset_sfntly() 161 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() argument 168 return subset_harfbuzz(std::move(fontData), glyphUsage, ttcIndex); in SkPDFSubsetFont() [all …]
|
D | SkPDFType1Font.cpp | 240 sk_sp<SkData> fontData = convert_type1_font_stream(std::move(rawFontData), in make_type1_font_descriptor() local 242 if (fontData) { in make_type1_font_descriptor() 247 auto fontStream = SkMemoryStream::Make(std::move(fontData)); in make_type1_font_descriptor()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Overlay_font_autogen.cpp | 2701 void OverlayState::initFontData(uint8_t *fontData) const in initFontData() 2709 memset(fontData, 0, kFontDataLayerSize); in initFontData() 2716 fontData[y * kFontImageWidth + x] = dstValue; in initFontData() 2719 fontData += kFontDataLayerSize; in initFontData() 2723 void OverlayState::initFontData(uint8_t *fontData) const in initFontData() 2725 memset(fontData, 0, kFontCount * kFontImageWidth * kFontImageHeight * sizeof(*fontData)); in initFontData()
|
/third_party/skia/tools/fonts/ |
D | TestTypeface.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() 41 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
|
/third_party/flutter/skia/tools/fonts/ |
D | TestTypeface.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() 41 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
|
/third_party/flutter/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()
|
/third_party/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()
|
/third_party/flutter/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() 93 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() 99 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont() 102 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont() 105 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
|
/third_party/skia/src/sfnt/ |
D | SkOTUtils.cpp | 41 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument 45 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont() 54 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont() 65 if (!fontData->rewind()) { in RenameFont() 95 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() 101 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont() 104 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont() 107 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | EOTWriter.java | 60 byte[] fontData = baos.toByteArray(); in convert() 71 fontData = mtxWriter.compress(font); in convert() 75 familyName.length, styleName.length, versionName.length, fullName.length, fontData.length); in convert() 83 index += writableFontData.writeULongLE(index, fontData.length); // FontDataSize in convert() 126 writableFontData.writeBytes(index, fontData, 0, fontData.length); // FontData[FontDataSize] in convert()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | EOTWriter.java | 60 byte[] fontData = baos.toByteArray(); in convert() 71 fontData = mtxWriter.compress(font); in convert() 75 familyName.length, styleName.length, versionName.length, fullName.length, fontData.length); in convert() 83 index += writableFontData.writeULongLE(index, fontData.length); // FontDataSize in convert() 126 writableFontData.writeBytes(index, fontData, 0, fontData.length); // FontData[FontDataSize] in convert()
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | SkFontMgr_ohos.cpp | 454 sk_sp<SkTypeface> SkFontMgr_OHOS::makeTypeface(SkFontData* fontData) const in makeTypeface() 457 int ttcIndex = fontData->getIndex(); in makeTypeface() 458 int axisCount = fontData->getAxisCount(); in makeTypeface() 459 SkStreamAsset* stream = fontData->getStream(); in makeTypeface() 467 const SkFixed* axis = fontData->getAxis(); in makeTypeface() 479 fontInfo.stream = fontData->detachStream(); in makeTypeface()
|
/third_party/flutter/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 | 129 std::unique_ptr<SkFontData> fontData = descD.detachFontData(); in DEF_TEST() local 130 if (!fontData) { in DEF_TEST() 135 if (fontData->getAxisCount() != 1) { in DEF_TEST() 140 REPORTER_ASSERT(reporter, fontData->getAxis()[0] == -SK_Fixed1); in DEF_TEST()
|
/third_party/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 | SkRemoteGlyphCacheTest.cpp | 291 std::vector<uint8_t> fontData; in DEF_TEST() local 292 server.writeStrikeData(&fontData); in DEF_TEST() 325 std::vector<uint8_t> fontData; in DEF_TEST() local 326 server.writeStrikeData(&fontData); in DEF_TEST() 331 server.writeStrikeData(&fontData); in DEF_TEST() 438 std::vector<uint8_t> fontData; in DEF_TEST() local 439 server.writeStrikeData(&fontData); in DEF_TEST()
|
/third_party/skia/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 241 auto fontData = std::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local 242 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex() 271 auto fontData = std::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local 275 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamArgs()
|
D | SkFontMgr_custom.cpp | 58 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream() argument 61 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream() 62 , fData(std::move(fontData)) in SkTypeface_Stream()
|
/third_party/flutter/skia/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 246 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local 247 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex() 276 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local 280 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()
|
/third_party/flutter/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()
|
/third_party/skia/modules/canvaskit/npm_build/ |
D | node.example.js | 16 let fontData = fs.readFileSync(path.join(assetPath, 'Roboto-Regular.woff')); variable 17 canvas.loadFont(fontData, {
|
/third_party/flutter/skia/modules/canvaskit/canvaskit/ |
D | node.example.js | 13 let fontData = fs.readFileSync(path.join(__dirname, './Roboto-Regular.woff')); variable 14 canvas.loadFont(fontData, {
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | OverlayVk.cpp | 106 uint8_t *fontData; in createFont() local 107 ANGLE_TRY(fontDataBuffer.get().map(contextVk, &fontData)); in createFont() 109 mState.initFontData(fontData); in createFont()
|