Replacement for SkPaint::setTextAlign

80 views
Skip to first unread message

Heidi Kurz

unread,
Feb 11, 2021, 3:53:09 AM2/11/21
to skia-discuss
Hi together, 
I'm upgrading from a very old Skia branch to the current version.

In earlier days there was the method 
SkPaint::setTextAlign(SkPaint::kCenter_Align)

Now I couldn't find any replacement for this. 
Could anybody help me?

Mike Klein

unread,
Feb 11, 2021, 8:27:36 AM2/11/21
to skia-discuss
This has moved to the function(s) in include/utils/SkTextUtils.h.  The implementation of SkTextUtils::Draw() in SkTextUtils.cpp is pretty simple; you may find it easier to do yourself rather than use SkTextUtils::Draw() directly.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/b16a8b41-fa30-4cd1-8582-891488c35503n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages