Home
last modified time | relevance | path

Searched refs:fontData (Results 1 – 25 of 42) sorted by relevance

12

/third_party/skia/src/pdf/
DSkPDFSubsetFont.cpp79 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 …]
DSkPDFSubsetFont.h10 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData,
DSkPDFType1Font.cpp240 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/
DOverlay_font_autogen.cpp2701 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()
DOverlay.h39 void initFontData(uint8_t *fontData) const;
/third_party/skia/tools/fonts/
DTestTypeface.cpp33 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/skia/tools/
Dremote_demo.cpp143 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/src/sfnt/
DSkOTUtils.cpp41 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()
DSkOTUtils.h41 static SkData* RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen);
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DEOTWriter.java60 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/tests/
DFontHostStreamTest.cpp91 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()
DSkRemoteGlyphCacheTest.cpp291 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/
DSkFontMgr_FontConfigInterface.cpp241 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()
DSkFontMgr_custom.cpp58 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()
DSkFontMgr_fuchsia.cpp191 SkTypeface_Fuchsia(std::unique_ptr<SkFontData> fontData, const SkFontStyle& style, in SkTypeface_Fuchsia() argument
193 : SkTypeface_Stream(std::move(fontData), style, isFixedPitch, in SkTypeface_Fuchsia()
220 auto fontData = std::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in CreateTypefaceFromSkStream() local
222 return sk_make_sp<SkTypeface_Fuchsia>(std::move(fontData), style, isFixedPitch, name, id); in CreateTypefaceFromSkStream()
DSkFontMgr_custom.h63 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData,
DSkFontHost_win.cpp1777 static HANDLE activate_font(SkData* fontData) { in activate_font() argument
1780 HANDLE fontHandle = AddFontMemResourceEx(const_cast<void*>(fontData->data()), in activate_font()
1781 static_cast<DWORD>(fontData->size()), in activate_font()
/third_party/skia/modules/canvaskit/npm_build/
Dnode.example.js16 let fontData = fs.readFileSync(path.join(assetPath, 'Roboto-Regular.woff')); variable
17 canvas.loadFont(fontData, {
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DOverlayVk.cpp106 uint8_t *fontData; in createFont() local
107 ANGLE_TRY(fontDataBuffer.get().map(contextVk, &fontData)); in createFont()
109 mState.initFontData(fontData); in createFont()
/third_party/skia/src/xps/
DSkXPSDevice.h106 : typefaceId(id), ttcIndex(index), fontData(std::move(data)) in TypefaceUse()
110 const std::unique_ptr<SkStream> fontData; variable
DSkXPSDevice.cpp342 (unsigned char *) current.fontData->getMemoryBase(), in subset_typeface()
343 (unsigned long) current.fontData->getLength(), in subset_typeface()
1750 std::unique_ptr<SkStreamAsset> fontData = typeface->openStream(&ttcIndex); in CreateTypefaceUse() local
1751 if (!fontData) { in CreateTypefaceUse()
1755 HRM(SkIStream::CreateFromSkStream(fontData->duplicate(), &fontStream), in CreateTypefaceUse()
1778 uint8_t* data = (uint8_t*)fontData->getMemoryBase(); in CreateTypefaceUse()
1780 fontData->getLength() >= sizeof(SkTTCFHeader) && in CreateTypefaceUse()
1788 std::move(fontData), in CreateTypefaceUse()
/third_party/skia/modules/canvaskit/
Dfont.js131 CanvasKit.Typeface.MakeFreeTypeFaceFromData = function(fontData) { argument
132 var data = new Uint8Array(fontData);
Dcanvaskit_bindings.cpp1342 sk_sp<SkData> fontData = SkData::MakeFromMalloc(font, flen); in EMSCRIPTEN_BINDINGS() local
1344 return self.makeFromData(fontData); in EMSCRIPTEN_BINDINGS()
1943 sk_sp<SkData> fontData = SkData::MakeFromMalloc(font, flen); in EMSCRIPTEN_BINDINGS() local
1945 return SkFontMgr::RefDefault()->makeFromData(fontData); in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts3553 MakeFreeTypeFaceFromData(fontData: ArrayBuffer): Typeface | null;
/third_party/skia/third_party/externals/swiftshader/include/GLES2/
Dgl2ext.h3134 …uint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceInde…
3211 …uint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceInde…

12