excubo-ag / Blazor.Canvas

https://excubo-ag.github.io/Blazor.Canvas/
MIT License
217 stars 23 forks source link

Exception with MeasureTextAsync #149

Closed PascalFarled closed 3 years ago

PascalFarled commented 3 years ago

Hello ,

i found a problem when trying to use the method MeasureTextAsync with string arg that contains single quote into it exemple : with this string arg : "L'ouverture du magasin"

it seems that the problem is related to escape chars in javascript (JS interop). with the sample string arg i have this output exception in browser console :

image

Do you have any ideas how to fix that ?

Many thx,

Regard, Valentin

stefanloerwald commented 3 years ago

Hi @PascalFarled,

thanks for raising this issue. It is indeed a bug, which I just fixed in version 2.6.5.

BR Stefan