Home
last modified time | relevance | path

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

123

/third_party/skia/modules/skparagraph/src/
DFontArguments.cpp5 static bool operator==(const SkFontArguments::VariationPosition::Coordinate& a, in operator ==()
6 const SkFontArguments::VariationPosition::Coordinate& b) { in operator ==()
10 static bool operator==(const SkFontArguments::Palette::Override& a, in operator ==()
11 const SkFontArguments::Palette::Override& b) { in operator ==()
37 FontArguments::FontArguments(const SkFontArguments& args) in FontArguments()
59 SkFontArguments::VariationPosition position{ in CloneTypeface()
64 SkFontArguments::Palette palette{ in CloneTypeface()
70 SkFontArguments args; in CloneTypeface()
/third_party/skia/include/core/
DSkFontArguments.h16 struct SkFontArguments { struct
43 SkFontArguments() in SkFontArguments() argument
53 SkFontArguments& setCollectionIndex(int collectionIndex) { in setCollectionIndex() argument
65 SkFontArguments& setVariationDesignPosition(VariationPosition position) { in setVariationDesignPosition() argument
79 SkFontArguments& setPalette(Palette palette) { in setPalette() argument
DSkTypeface.h74 int getVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[],
143 sk_sp<SkTypeface> makeClone(const SkFontArguments&) const;
362 virtual sk_sp<SkTypeface> onMakeClone(const SkFontArguments&) const = 0;
394 SkFontArguments::VariationPosition::Coordinate coordinates[],
DSkFontMgr.h120 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) const;
166 const SkFontArguments&) const = 0;
/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()
DFontMgrAndroidParserTest.cpp322 SkFontArguments::VariationPosition::Coordinate in DEF_TEST()
324 SkFontArguments::VariationPosition in DEF_TEST()
329 SkFontArguments().setVariationDesignPosition(position)), in DEF_TEST()
335 typeface->makeClone(SkFontArguments().setVariationDesignPosition(position)), kTextSize); in DEF_TEST()
/third_party/skia/modules/skparagraph/include/
DFontArguments.h15 FontArguments(const SkFontArguments&);
32 std::vector<SkFontArguments::VariationPosition::Coordinate> fCoordinates;
34 std::vector<SkFontArguments::Palette::Override> fPaletteOverrides;
/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>;
DSkTypeface.cpp41 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone()
78 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], in onGetVariationDesignPosition()
167 sk_sp<SkTypeface> SkTypeface::makeClone(const SkFontArguments& args) const { in makeClone()
222 SkFontArguments args; in MakeDeserialize()
255 SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) const in getVariationDesignPosition()
DSkTypeface_remote.h67 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone()
73 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], in onGetVariationDesignPosition()
/third_party/skia/src/ports/
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.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()
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;
DSkFontMgr_preview.h104 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override in onMakeClone()
162 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override in onMakeClone()
245 SkFontArguments::VariationPosition position = { in SkFontStyleSet_Preview()
342 const SkFontArguments& args) const override;
DSkFontMgr_fuchsia.cpp204 const SkFontArguments& args, TypefaceId id) { in CreateTypefaceFromSkStream()
216 const SkFontArguments::VariationPosition position = args.getVariationDesignPosition(); in CreateTypefaceFromSkStream()
227 SkFontArguments().setCollectionIndex(id.ttcIndex), id); in CreateTypefaceFromSkData()
249 const SkFontArguments&) const override;
379 return makeFromStream(std::move(asset), SkFontArguments().setCollectionIndex(ttcIndex)); in onMakeFromStreamIndex()
383 const SkFontArguments& args) const { in onMakeFromStreamArgs()
/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()
DSkFontMgr_ohos.h46 const SkFontArguments& args) const override;
58 const SkFontArguments& args, const char path[]) const;
DSkTypeface_ohos.cpp112 sk_sp<SkTypeface> SkTypeface_OHOS::onMakeClone(const SkFontArguments& args) const in onMakeClone()
118 SkFontArguments::VariationPosition position = args.getVariationDesignPosition(); in onMakeClone()
/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()
DTestTypeface.h81 sk_sp<SkTypeface> onMakeClone(const SkFontArguments& args) const override { in onMakeClone()
101 int onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate coordinates[], in onGetVariationDesignPosition()

123