Home
last modified time | relevance | path

Searched refs:SkFontData (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/core/
DSkFontDescriptor.h16 class SkFontData {
19 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, const SkFixed axis[],int axisCount) in SkFontData() function
26 SkFontData(const SkFontData& that) in SkFontData() function
66 std::unique_ptr<SkFontData> detachFontData() { return std::move(fFontData); } in detachFontData()
72 void setFontData(std::unique_ptr<SkFontData> data) { fFontData = std::move(data); } in setFontData()
78 std::unique_ptr<SkFontData> fFontData;
DSkTypeface.cpp159 sk_sp<SkTypeface> SkTypeface::MakeFromFontData(std::unique_ptr<SkFontData> data) { in MakeFromFontData()
197 std::unique_ptr<SkFontData> data = desc.detachFontData(); in MakeDeserialize()
242 std::unique_ptr<SkFontData> SkTypeface::makeFontData() const { in makeFontData()
247 std::unique_ptr<SkFontData> SkTypeface::onMakeFontData() const { in onMakeFontData()
250 return skstd::make_unique<SkFontData>(std::move(stream), index, nullptr, 0); in onMakeFontData()
DSkFontMgr.cpp142 SkTypeface* SkFontMgr::createFromFontData(std::unique_ptr<SkFontData> data) const { in createFromFontData()
155 SkTypeface* SkFontMgr::onCreateFromFontData(std::unique_ptr<SkFontData> data) const { in onCreateFromFontData()
DSkFontDescriptor.cpp110 result->fFontData = skstd::make_unique<SkFontData>( in Deserialize()
/external/skia/src/ports/
DSkFontConfigTypeface.h20 std::unique_ptr<SkFontData> fFontData;
31 static SkTypeface_FCI* Create(std::unique_ptr<SkFontData> data, in Create()
52 SkTypeface_FCI(std::unique_ptr<SkFontData> data, in SkTypeface_FCI()
65 std::unique_ptr<SkFontData> onMakeFontData() const override;
DSkFontMgr_custom.h61 SkTypeface_Stream(std::unique_ptr<SkFontData> fontData,
67 std::unique_ptr<SkFontData> onMakeFontData() const override;
70 const std::unique_ptr<const SkFontData> fData;
148 SkTypeface* onCreateFromFontData(std::unique_ptr<SkFontData> data) const override;
DSkFontMgr_android.cpp96 std::unique_ptr<SkFontData> onMakeFontData() const override { in onMakeFontData()
97 return skstd::make_unique<SkFontData>(this->makeStream(), fIndex, in onMakeFontData()
113 SkTypeface_AndroidStream(std::unique_ptr<SkFontData> data, in SkTypeface_AndroidStream()
134 std::unique_ptr<SkFontData> onMakeFontData() const override { in onMakeFontData()
135 return skstd::make_unique<SkFontData>(*fData); in onMakeFontData()
139 const std::unique_ptr<const SkFontData> fData;
430 auto data = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onCreateFromStream()
451 auto data = skstd::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in onCreateFromStream()
456 SkTypeface* onCreateFromFontData(std::unique_ptr<SkFontData> data) const override { in onCreateFromFontData()
DSkFontMgr_custom.cpp54 SkTypeface_Stream::SkTypeface_Stream(std::unique_ptr<SkFontData> fontData, in SkTypeface_Stream()
66 std::unique_ptr<SkFontData> SkTypeface_Stream::onMakeFontData() const { in onMakeFontData()
67 return skstd::make_unique<SkFontData>(*fData); in onMakeFontData()
222 auto data = skstd::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in onCreateFromStream()
227 SkTypeface* SkFontMgr_Custom::onCreateFromFontData(std::unique_ptr<SkFontData> data) const { in onCreateFromFontData()
DSkFontMgr_FontConfigInterface.cpp35 std::unique_ptr<SkFontData> SkTypeface_FCI::onMakeFontData() const { in onMakeFontData()
37 return skstd::make_unique<SkFontData>(*fFontData); in onMakeFontData()
41 return skstd::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData()
221 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onCreateFromStream()
250 auto fontData = skstd::make_unique<SkFontData>(std::move(stream), in onCreateFromStream()
DSkFontMgr_fontconfig.cpp409 SkTypeface_stream(std::unique_ptr<SkFontData> data, in SkTypeface_stream()
429 std::unique_ptr<SkFontData> onMakeFontData() const override { in onMakeFontData()
430 return skstd::make_unique<SkFontData>(*fData); in onMakeFontData()
435 const std::unique_ptr<const SkFontData> fData;
898 auto data = skstd::make_unique<SkFontData>(std::move(stream), ttcIndex, nullptr, 0); in onCreateFromStream()
919 auto data = skstd::make_unique<SkFontData>(std::move(stream), args.getCollectionIndex(), in onCreateFromStream()
932 SkTypeface* onCreateFromFontData(std::unique_ptr<SkFontData> fontData) const override { in onCreateFromFontData()
DSkFontMgr_custom_embedded.cpp75 auto data = skstd::make_unique<SkFontData>(std::move(stream), faceIndex, nullptr, 0); in load_embedded_font()
DSkFontHost_mac.cpp518 std::unique_ptr<SkFontData> onMakeFontData() const override;
1788 std::unique_ptr<SkFontData> SkTypeface_Mac::onMakeFontData() const { in onMakeFontData()
1795 return skstd::make_unique<SkFontData>(std::move(stream), index, in onMakeFontData()
1798 return skstd::make_unique<SkFontData>(std::move(stream), index, nullptr, 0); in onMakeFontData()
2539 static UniqueCFRef<CFDictionaryRef> copy_axes(CGFontRef cg, SkFontData* fontData) { in copy_axes()
2592 SkTypeface* onCreateFromFontData(std::unique_ptr<SkFontData> fontData) const override { in onCreateFromFontData()
DSkFontHost_FreeType.cpp284 static void ft_face_setup_axes(SkFaceRec* rec, const SkFontData& data) { in ft_face_setup_axes()
344 std::unique_ptr<SkFontData> data = typeface->makeFontData(); in ref_ft_face()
/external/skia/include/ports/
DSkFontMgr.h17 class SkFontData; variable
117 SkTypeface* createFromFontData(std::unique_ptr<SkFontData>) const;
152 virtual SkTypeface* onCreateFromFontData(std::unique_ptr<SkFontData>) const;
/external/skia/include/core/
DSkTypeface.h20 class SkFontData; variable
149 static sk_sp<SkTypeface> MakeFromFontData(std::unique_ptr<SkFontData>);
298 std::unique_ptr<SkFontData> makeFontData() const;
352 virtual std::unique_ptr<SkFontData> onMakeFontData() const;
/external/skia/src/utils/
DSkWhitelistTypefaces.cpp66 std::unique_ptr<SkFontData> fontData = tf->makeFontData(); in compute_checksum()
193 std::unique_ptr<SkFontData> data = desc.detachFontData(); in WhitelistDeserializeTypeface()
/external/skia/tests/
DSerializationTest.cpp375 skstd::make_unique<SkFontData>(std::move(distortable), 0, &axis, 1))); in TestPictureTypefaceSerialization()