Replies: 5 comments 7 replies
|
The text alignment values are no longer part of the paint, but a separate parameter in the DrawText methods. The paint.TextAlign should still work for now, but may be removed at a later date. But, that obsolete message is also incorrect, it should be |
|
Problem is not finished. New questions. SKTextAlign - this property, with Get and Set. What about reading current SKTextAlign state? |
|
Yeah, I'm struggling with this too. I've got the code below, but it's completely unclear as to how to migrate it to the new APIs etc. It would be helpful if the SkiaSharp samples were updated to replace the obsolete code too, so there are samples we can look at. Any chance you could provide some guidance on how to convert the code below to use the new APIs? |
|
Thank you |
|
@mattleibow, sorry, but question is not solved. Version 3.119.4. SKPaint.TextAlign - obsolete. And obsolete message is not usefull. How to get TextAlign value? I dont want to using align into DrawText. I want to reading current. P.S. same for SKPaint.SKTextEncoding |
Uh oh!
There was an error while loading. Please reload this page.
I'm updated package from 2.88.3 to 3.116.0/1 version.
Much members of SKPaint class is obsolete now. But not all can migrate because obsolete message incorrect or incomplete. Example,
What i must use now? Method SKTextAlign not found in sources.
All reactions