Home
last modified time | relevance | path

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

12

/external/skqp/tools/
Dsk_tool_utils_font.cpp25 SkTestFontData& fontData = gTestFonts[index]; in release_portable_typefaces() local
26 fontData.fCachedFont.reset(); in release_portable_typefaces()
33 SkTestFontData* fontData = nullptr; in create_font() local
39 fontData = &sub->fFont; in create_font()
43 if (!fontData) { in create_font()
55 fontData = &sub->fFont; in create_font()
60 if (fontData->fCachedFont) { in create_font()
61 font = fontData->fCachedFont; in create_font()
63 font = sk_make_sp<SkTestFont>(*fontData); in create_font()
64 fontData->fCachedFont = font; in create_font()
DSkTestScalerContext.cpp23 SkTestFont::SkTestFont(const SkTestFontData& fontData) in SkTestFont() argument
25 , fCharCodes(fontData.fCharCodes) in SkTestFont()
26 , fCharCodesCount(fontData.fCharCodes ? fontData.fCharCodesCount : 0) in SkTestFont()
27 , fWidths(fontData.fWidths) in SkTestFont()
28 , fMetrics(fontData.fMetrics) in SkTestFont()
29 , fName(fontData.fName) in SkTestFont()
32 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
/external/skia/tools/fonts/
Dsk_tool_utils_font.cpp27 SkTestFontData& fontData = gTestFonts[index]; in release_portable_typefaces() local
28 fontData.fCachedFont.reset(); in release_portable_typefaces()
35 SkTestFontData* fontData = nullptr; in create_font() local
41 fontData = &sub->fFont; in create_font()
45 if (!fontData) { in create_font()
57 fontData = &sub->fFont; in create_font()
62 if (fontData->fCachedFont) { in create_font()
63 font = fontData->fCachedFont; in create_font()
65 font = sk_make_sp<SkTestFont>(*fontData); in create_font()
66 fontData->fCachedFont = font; in create_font()
DSkTestScalerContext.cpp23 SkTestFont::SkTestFont(const SkTestFontData& fontData) in SkTestFont() argument
25 , fCharCodes(fontData.fCharCodes) in SkTestFont()
26 , fCharCodesCount(fontData.fCharCodes ? fontData.fCharCodesCount : 0) in SkTestFont()
27 , fWidths(fontData.fWidths) in SkTestFont()
28 , fMetrics(fontData.fMetrics) in SkTestFont()
29 , fName(fontData.fName) in SkTestFont()
32 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
/external/skia/src/sfnt/
DSkOTUtils.cpp38 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument
42 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont()
51 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont()
62 if (!fontData->rewind()) { in RenameFont()
85 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont()
91 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont()
94 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont()
97 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
DSkOTUtils.h41 static SkData* RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen);
/external/skqp/src/sfnt/
DSkOTUtils.cpp38 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument
42 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont()
51 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont()
62 if (!fontData->rewind()) { in RenameFont()
85 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont()
91 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont()
94 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont()
97 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
DSkOTUtils.h41 static SkData* RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen);
/external/pdfium/core/fpdfapi/page/
Dcpdf_docpagedata.cpp80 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/
DFontHostStreamTest.cpp90 std::unique_ptr<SkStreamAsset> fontData(typeface->openStream(&ttcIndex)); in DEF_TEST() local
91 if (!fontData) { in DEF_TEST()
97 sk_sp<SkTypeface> streamTypeface(SkTypeface::MakeFromStream(fontData.release())); in DEF_TEST()
/external/skia/tests/
DFontHostStreamTest.cpp90 std::unique_ptr<SkStreamAsset> fontData(typeface->openStream(&ttcIndex)); in DEF_TEST() local
91 if (!fontData) { in DEF_TEST()
97 sk_sp<SkTypeface> streamTypeface(SkTypeface::MakeFromStream(fontData.release())); in DEF_TEST()
/external/skia/src/pdf/
DSkPDFFont.cpp344 sk_sp<SkData> fontData(stream_to_data(std::move(fontAsset))); in get_subset_font_stream() local
349 fontData->bytes(), in get_subset_font_stream()
350 fontData->size(), in get_subset_font_stream()
357 fontData->bytes(), in get_subset_font_stream()
358 fontData->size(), in get_subset_font_stream()
363 fontData.reset(); in get_subset_font_stream()
511 sk_sp<SkData> fontData = SkPDFConvertType1FontStream(std::move(rawFontData), in make_type1_font_descriptor() local
513 if (fontData) { in make_type1_font_descriptor()
514 auto fontStream = sk_make_sp<SkPDFStream>(std::move(fontData)); in make_type1_font_descriptor()
/external/skqp/src/pdf/
DSkPDFFont.cpp344 sk_sp<SkData> fontData(stream_to_data(std::move(fontAsset))); in get_subset_font_stream() local
349 fontData->bytes(), in get_subset_font_stream()
350 fontData->size(), in get_subset_font_stream()
357 fontData->bytes(), in get_subset_font_stream()
358 fontData->size(), in get_subset_font_stream()
363 fontData.reset(); in get_subset_font_stream()
511 sk_sp<SkData> fontData = SkPDFConvertType1FontStream(std::move(rawFontData), in make_type1_font_descriptor() local
513 if (fontData) { in make_type1_font_descriptor()
514 auto fontStream = sk_make_sp<SkPDFStream>(std::move(fontData)); in make_type1_font_descriptor()
/external/skqp/src/ports/
DSkFontMgr_FontConfigInterface.cpp221 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local
222 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex()
251 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local
255 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamArgs()
DSkFontMgr_custom.cpp54 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream() argument
57 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream()
58 , fData(std::move(fontData)) in SkTypeface_Stream()
DSkFontMgr_fontconfig.cpp948 sk_sp<SkTypeface> onMakeFromFontData(std::unique_ptr<SkFontData> fontData) const override { in onMakeFromFontData()
949 SkStreamAsset* stream(fontData->getStream()); in onMakeFromFontData()
955 const int ttcIndex = fontData->getIndex(); in onMakeFromFontData()
963 return sk_sp<SkTypeface>(new SkTypeface_stream(std::move(fontData), std::move(name), in onMakeFromFontData()
DSkFontMgr_custom.h61 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData,
/external/skia/src/ports/
DSkFontMgr_FontConfigInterface.cpp221 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onMakeFromStreamIndex() local
222 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamIndex()
251 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onMakeFromStreamArgs() local
255 return sk_sp<SkTypeface>(SkTypeface_FCI::Create(std::move(fontData), std::move(name), in onMakeFromStreamArgs()
DSkFontMgr_custom.cpp54 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream() argument
57 : INHERITED(style, isFixedPitch, sysFont, familyName, fontData->getIndex()) in SkTypeface_Stream()
58 , fData(std::move(fontData)) in SkTypeface_Stream()
DSkFontMgr_fontconfig.cpp948 sk_sp<SkTypeface> onMakeFromFontData(std::unique_ptr<SkFontData> fontData) const override { in onMakeFromFontData()
949 SkStreamAsset* stream(fontData->getStream()); in onMakeFromFontData()
955 const int ttcIndex = fontData->getIndex(); in onMakeFromFontData()
963 return sk_sp<SkTypeface>(new SkTypeface_stream(std::move(fontData), std::move(name), in onMakeFromFontData()
DSkFontMgr_custom.h61 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData,
/external/skqp/src/utils/
DSkWhitelistTypefaces.cpp66 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/
DSkWhitelistTypefaces.cpp66 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/xps/
DSkXPSDevice.cpp123 , fontData(nullptr) in TypefaceUse()
343 (unsigned char *) current->fontData->getMemoryBase(), in subset_typeface()
344 (unsigned long) current->fontData->getLength(), in subset_typeface()
1843 SkStream* fontData = typeface->openStream(&ttcIndex); in CreateTypefaceUse() local
1845 HRM(SkIStream::CreateFromSkStream(fontData, true, &fontStream), in CreateTypefaceUse()
1868 uint8_t* data = (uint8_t*)fontData->getMemoryBase(); in CreateTypefaceUse()
1870 fontData->getLength() >= sizeof(SkTTCFHeader) && in CreateTypefaceUse()
1876 newTypefaceUse.fontData = fontData; in CreateTypefaceUse()
/external/skqp/src/xps/
DSkXPSDevice.cpp123 , fontData(nullptr) in TypefaceUse()
343 (unsigned char *) current->fontData->getMemoryBase(), in subset_typeface()
344 (unsigned long) current->fontData->getLength(), in subset_typeface()
1843 SkStream* fontData = typeface->openStream(&ttcIndex); in CreateTypefaceUse() local
1845 HRM(SkIStream::CreateFromSkStream(fontData, true, &fontStream), in CreateTypefaceUse()
1868 uint8_t* data = (uint8_t*)fontData->getMemoryBase(); in CreateTypefaceUse()
1870 fontData->getLength() >= sizeof(SkTTCFHeader) && in CreateTypefaceUse()
1876 newTypefaceUse.fontData = fontData; in CreateTypefaceUse()

12