nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

drawText bug in ios #19

Closed erjdriver closed 4 years ago

erjdriver commented 4 years ago

canvas.drawText( "Hello", 2, 4, 200, 300, paint );

The ios version of the plugin - doesn't respect the start and end indexes.

Also, the font on the Android version is very small.

Is there a way to standardize the font size across both platforms - e.g. make it dependent on dpi.

farfromrefug commented 4 years ago

So for the x y yes not implemented yet on ios. For the font size if you specify it on the paint it will be the same on both platforms

farfromrefug commented 4 years ago

I ll close this as I will implement it at one point but for now simply do substr first