Home
last modified time | relevance | path

Searched refs:SkFont (Results 1 – 12 of 12) sorted by relevance

/external/skia/src/core/
DSkFont.cpp12 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType mt, in SkFont() function in SkFont
27 sk_sp<SkFont> SkFont::Make(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX, in Make()
39 return sk_sp<SkFont>(new SkFont(std::move(face), size, scaleX, skewX, mt, flags)); in Make()
42 sk_sp<SkFont> SkFont::Make(sk_sp<SkTypeface> face, SkScalar size, MaskType mt, uint32_t flags) { in Make()
43 return SkFont::Make(std::move(face), size, 1, 0, mt, flags); in Make()
46 sk_sp<SkFont> SkFont::makeWithSize(SkScalar newSize) const { in makeWithSize()
47 return SkFont::Make(sk_ref_sp(this->getTypeface()), newSize, this->getScaleX(), in makeWithSize()
51 sk_sp<SkFont> SkFont::makeWithFlags(uint32_t newFlags) const { in makeWithFlags()
52 return SkFont::Make(sk_ref_sp(this->getTypeface()), this->getSize(), this->getScaleX(), in makeWithFlags()
57 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs()
[all …]
/external/skqp/src/core/
DSkFont.cpp12 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType mt, in SkFont() function in SkFont
27 sk_sp<SkFont> SkFont::Make(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX, in Make()
39 return sk_sp<SkFont>(new SkFont(std::move(face), size, scaleX, skewX, mt, flags)); in Make()
42 sk_sp<SkFont> SkFont::Make(sk_sp<SkTypeface> face, SkScalar size, MaskType mt, uint32_t flags) { in Make()
43 return SkFont::Make(std::move(face), size, 1, 0, mt, flags); in Make()
46 sk_sp<SkFont> SkFont::makeWithSize(SkScalar newSize) const { in makeWithSize()
47 return SkFont::Make(sk_ref_sp(this->getTypeface()), newSize, this->getScaleX(), in makeWithSize()
51 sk_sp<SkFont> SkFont::makeWithFlags(uint32_t newFlags) const { in makeWithFlags()
52 return SkFont::Make(sk_ref_sp(this->getTypeface()), this->getSize(), this->getScaleX(), in makeWithFlags()
57 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs()
[all …]
/external/skia/include/core/
DSkFont.h73 class SkFont : public SkRefCnt {
120 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, MaskType, uint32_t flags);
121 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX,
128 sk_sp<SkFont> makeWithSize(SkScalar size) const;
132 sk_sp<SkFont> makeWithFlags(uint32_t newFlags) const;
157 static sk_sp<SkFont> Testing_CreateFromPaint(const SkPaint&);
164 SkFont(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType,
/external/skqp/include/core/
DSkFont.h73 class SkFont : public SkRefCnt {
120 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, MaskType, uint32_t flags);
121 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX,
128 sk_sp<SkFont> makeWithSize(SkScalar size) const;
132 sk_sp<SkFont> makeWithFlags(uint32_t newFlags) const;
157 static sk_sp<SkFont> Testing_CreateFromPaint(const SkPaint&);
164 SkFont(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType,
/external/skqp/tests/
DFontObjTest.cpp26 sk_sp<SkFont> font(SkFont::Testing_CreateFromPaint(paint)); in test_cachedfont()
105 sk_sp<SkFont> font(SkFont::Testing_CreateFromPaint(paint)); in test_cachedfont()
DFontMgrTest.cpp22 sk_sp<SkFont> font(SkFont::Make(nullptr, 24, SkFont::kA8_MaskType, flags)); in test_font()
28 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType()); in test_font()
42 sk_sp<SkFont> newFont(font->makeWithSize(36)); in test_font()
50 font = SkFont::Testing_CreateFromPaint(paint); in test_font()
53 REPORTER_ASSERT(reporter, SkFont::kBW_MaskType == font->getMaskType()); in test_font()
/external/skia/tests/
DFontObjTest.cpp26 sk_sp<SkFont> font(SkFont::Testing_CreateFromPaint(paint)); in test_cachedfont()
105 sk_sp<SkFont> font(SkFont::Testing_CreateFromPaint(paint)); in test_cachedfont()
DFontMgrTest.cpp22 sk_sp<SkFont> font(SkFont::Make(nullptr, 24, SkFont::kA8_MaskType, flags)); in test_font()
28 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType()); in test_font()
42 sk_sp<SkFont> newFont(font->makeWithSize(36)); in test_font()
50 font = SkFont::Testing_CreateFromPaint(paint); in test_font()
53 REPORTER_ASSERT(reporter, SkFont::kBW_MaskType == font->getMaskType()); in test_font()
/external/skqp/gn/
Dcore.gni145 "$_src/core/SkFont.cpp",
/external/skia/gn/
Dcore.gni145 "$_src/core/SkFont.cpp",
/external/skqp/
DAndroid.bp598 "src/core/SkFont.cpp",
/external/skia/
DAndroid.bp242 "src/core/SkFont.cpp",