Home
last modified time | relevance | path

Searched refs:SkFontArguments (Results 1 – 25 of 113) sorted by relevance

12345

/third_party/flutter/skia/include/core/
DSkFontArguments.h15 struct SkFontArguments { struct
30 SkFontArguments() : fCollectionIndex(0), fVariationDesignPosition{nullptr, 0} {} in SkFontArguments() argument
37 SkFontArguments& setCollectionIndex(int collectionIndex) { in setCollectionIndex() argument
43 SkFontArguments& setAxes(const Axis* axes, int axisCount) { in setAxes() argument
57 SkFontArguments& setVariationDesignPosition(VariationPosition position) { in setVariationDesignPosition() argument
DSkTypeface.h74 int getVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
148 sk_sp<SkTypeface> makeClone(const SkFontArguments&) const;
357 virtual sk_sp<SkTypeface> onMakeClone(const SkFontArguments&) const = 0;
386 SkFontArguments::VariationPosition::Coordinate coordinates[],
/third_party/skia/include/core/
DSkFontArguments.h15 struct SkFontArguments { struct
25 SkFontArguments() : fCollectionIndex(0), fVariationDesignPosition{nullptr, 0} {} in SkFontArguments() argument
32 SkFontArguments& setCollectionIndex(int collectionIndex) { in setCollectionIndex() argument
44 SkFontArguments& setVariationDesignPosition(VariationPosition position) { in setVariationDesignPosition() argument
DSkTypeface.h74 int getVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
143 sk_sp<SkTypeface> makeClone(const SkFontArguments&) const;
353 virtual sk_sp<SkTypeface> onMakeClone(const SkFontArguments&) const = 0;
383 SkFontArguments::VariationPosition::Coordinate coordinates[],
/third_party/skia/tests/
DFontMgrFontConfigTest.cpp78 SkFontArguments::VariationPosition::Coordinate in DEF_TEST()
80 SkFontArguments::VariationPosition in DEF_TEST()
85 SkFontArguments().setVariationDesignPosition(position)), in DEF_TEST()
90 typeface->makeClone(SkFontArguments().setVariationDesignPosition(position)), kTextSize); in DEF_TEST()
DTypefaceTest.cpp136 SkFontArguments::VariationPosition::Coordinate* variation = desc.setVariationCoordinates(1); in DEF_TEST()
153 using Variation = SkFontArguments::VariationPosition; in DEF_TEST()
250 SkFontArguments params; in DEF_TEST()
270 SkFontArguments params; in DEF_TEST()
277 sk_sp<SkTypeface> clone = typeface->makeClone(SkFontArguments()); in DEF_TEST()
291 SkFontArguments params; in DEF_TEST()
307 SkFontArguments::VariationPosition::Coordinate positionRead[1]; in DEF_TEST()
DTypefaceMacTest.cpp66 using Coordinate = SkFontArguments::VariationPosition::Coordinate; in DEF_TEST()
143 SkFontArguments::VariationPosition variationPosition = in DEF_TEST()
146 typeface->makeClone(SkFontArguments().setVariationDesignPosition(variationPosition))); in DEF_TEST()
/third_party/flutter/skia/gm/
Dfontscalerdistortable.cpp76 SkFontArguments::VariationPosition::Coordinate coordinates[] = {{tag, styleValue}}; in onDraw()
77 SkFontArguments::VariationPosition position = in onDraw()
81 SkFontArguments().setVariationDesignPosition(position)); in onDraw()
86 SkFontArguments().setVariationDesignPosition(position))); in onDraw()
/third_party/flutter/skia/tests/
DFontMgrFontConfigTest.cpp77 SkFontArguments::VariationPosition::Coordinate in DEF_TEST()
79 SkFontArguments::VariationPosition in DEF_TEST()
84 SkFontArguments().setVariationDesignPosition(position)), in DEF_TEST()
89 typeface->makeClone(SkFontArguments().setVariationDesignPosition(position)), kTextSize); in DEF_TEST()
DTypefaceTest.cpp154 const SkFontArguments::VariationPosition::Coordinate position[] = { in DEF_TEST()
158 SkFontArguments params; in DEF_TEST()
174 SkFontArguments::VariationPosition::Coordinate positionRead[numberOfAxesInDistortable]; in DEF_TEST()
194 SkFontArguments params; in DEF_TEST()
210 SkFontArguments::VariationPosition::Coordinate positionRead[1]; in DEF_TEST()
249 SkFontArguments params; in DEF_TEST()
/third_party/skia/gm/
Dfontscalerdistortable.cpp74 SkFontArguments::VariationPosition::Coordinate coordinates[] = { in onOnceBeforeDraw()
78 SkFontArguments::VariationPosition position = { in onOnceBeforeDraw()
84 SkFontArguments().setVariationDesignPosition(position)); in onOnceBeforeDraw()
88 SkFontArguments().setVariationDesignPosition(position)); in onOnceBeforeDraw()
/third_party/skia/src/core/
DSkFontDescriptor.h28 SkFontData(std::unique_ptr<SkStreamAsset> stream, SkFontArguments args) in SkFontData()
85 const SkFontArguments::VariationPosition::Coordinate* getVariation() const { in getVariation()
92 SkFontArguments::VariationPosition::Coordinate* setVariationCoordinates(int coordinateCount) { in setVariationCoordinates()
105 using Coordinates = SkAutoSTMalloc<4, SkFontArguments::VariationPosition::Coordinate>;
/third_party/flutter/skia/src/ports/
DSkFontMgr_custom.cpp53 sk_sp<SkTypeface> SkTypeface_Empty::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
73 sk_sp<SkTypeface> SkTypeface_Stream::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
100 sk_sp<SkTypeface> SkTypeface_File::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
235 return this->makeFromStream(std::move(stream), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex()
239 const SkFontArguments& args) const { in onMakeFromStreamArgs()
251 const SkFontArguments::VariationPosition position = args.getVariationDesignPosition(); in onMakeFromStreamArgs()
DSkFontMgr_custom.h53 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
69 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
85 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
150 …sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) con…
DSkFontHost_FreeType_common.h78 const SkFontArguments::VariationPosition position,
96 std::unique_ptr<SkFontData> cloneFontData(const SkFontArguments&) const;
111 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
/third_party/skia/src/ports/
DSkFontMgr_custom.cpp52 sk_sp<SkTypeface> SkTypeface_Empty::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
74 sk_sp<SkTypeface> SkTypeface_Stream::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
101 sk_sp<SkTypeface> SkTypeface_File::onMakeClone(const SkFontArguments& args) const { in onMakeClone()
232 return this->makeFromStream(std::move(stream), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex()
236 const SkFontArguments& args) const { in onMakeFromStreamArgs()
248 const SkFontArguments::VariationPosition position = args.getVariationDesignPosition(); in onMakeFromStreamArgs()
DSkFontHost_FreeType_common.h89 const SkFontArguments::VariationPosition position,
92 const SkFontArguments::VariationPosition::Coordinate* currentPosition = nullptr);
115 std::unique_ptr<SkFontData> cloneFontData(const SkFontArguments&) const;
132 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
DSkFontMgr_custom.h53 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
70 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
86 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
150 …sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) con…
DSkTypeface_mac_ct.h58 CTFontVariation SkCTVariationFromSkFontArguments(CTFontRef ct, const SkFontArguments& args);
98 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
117 sk_sp<SkTypeface> onMakeClone(const SkFontArguments&) const override;
/third_party/skia/src/ports/skia_ohos/
DSkFontMgr_ohos.cpp301 SkFontArguments args; in onMakeFromData()
319 SkFontArguments args; in onMakeFromStreamIndex()
332 const SkFontArguments& args) const in onMakeFromStreamArgs()
359 SkFontArguments args; in onMakeFromFile()
395 const SkFontArguments& args, const char path[]) const in makeTypeface()
/third_party/flutter/skia/src/ports/skia_ohos/
DSkFontMgr_ohos.cpp301 SkFontArguments args; in onMakeFromData()
319 SkFontArguments args; in onMakeFromStreamIndex()
332 const SkFontArguments& args) const in onMakeFromStreamArgs()
378 SkFontArguments args; in onMakeFromFile()
414 const SkFontArguments& args, const char path[]) const in makeTypeface()
/third_party/flutter/skia/tools/fonts/
DRandomScalerContext.h33 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
45 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
DTestEmptyTypeface.h23 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone()
50 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], in onGetVariationDesignPosition()
/third_party/skia/tools/fonts/
DRandomScalerContext.h33 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override;
47 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
DTestEmptyTypeface.h24 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone()
55 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], in onGetVariationDesignPosition()

12345