--
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+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
What Ben said.You can get the metrics for drawPosText underlining from Skia. See fancyposunderline in gm/texteffects.cpp for an example.
On Wed, Feb 15, 2017 at 2:26 PM, 'Ben Wagner' via skia-discuss <skia-d...@googlegroups.com> wrote:
In Skia the text decorations (underline and strike-through) only affect drawText calls, and this is done mostly just for backward compatibility and will probably be removed soon. Text decoration can get quite complex with layout, and since different users will disagree about what the behavior should be it's best that the user do the drawing.
On Wed, Feb 15, 2017 at 2:14 PM, Bear Travis <bear....@gmail.com> wrote:
Hi All,I was wondering what the recommended method was of decorating text with an underline when it is rendered with SkCanvas::drawPosText (specifically the drawPosTextH variant). My experiments so far with SkPaint::setUnderlineText haven't worked yet, and I've run across a couple discussions (a code review and a separate issue) that seemed to suggest that setUnderlineText was not the right API to use, and that some custom work might be involved.Any help would be much appreciated,-Bear
--
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 post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
--
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.