8 #ifndef SkSGText_DEFINED
9 #define SkSGText_DEFINED
17 #include "include/utils/SkTextUtils.h"
56 SkPoint alignedPosition(
SkScalar advance)
const;
64 SkTextUtils::Align fAlign = SkTextUtils::kLeft_Align;
SkFontHinting
Definition: SkFontTypes.h:18
@ kNormal
glyph outlines modified to improve constrast
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition: SkSGNode.h:99
float SkScalar
Definition: SkScalar.h:14
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
Edging
Whether edge pixels draw opaque or with partial transparency.
Definition: SkFont.h:40
@ kAntiAlias
may have transparent pixels on glyph edges
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
SkPath contain geometry.
Definition: SkPath.h:58
Light weight class for managing strings.
Definition: SkString.h:118
The SkTypeface class specifies the typeface and intrinsic style of a font.
Definition: SkTypeface.h:52
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Base class for nodes which provide 'geometry' (as opposed to paint) for drawing.
Definition: SkSGGeometryNode.h:25
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
Base class for all scene graph nodes.
Definition: SkSGNode.h:32
Concrete Geometry node, wrapping a (shaped) SkTextBlob.
Definition: SkSGText.h:28
bool onContains(const SkPoint &) const override
SkPath onAsPath() const override
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
void onDraw(SkCanvas *, const SkPaint &) const override
void onClip(SkCanvas *, bool antiAlias) const override
static sk_sp< Text > Make(sk_sp< SkTypeface > tf, const SkString &text)
sk_sp< SkDrawLooper > SK_API Make(SkColor4f color, SkColorSpace *cs, SkScalar sigma, SkScalar dx, SkScalar dy)
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582