androidsvg icon indicating copy to clipboard operation
androidsvg copied to clipboard

Font variation settings ruins performance

Open folkyatina opened this issue 3 years ago • 0 comments

Also in our fork we had to disable font variation settings because Paint#setFontVariationSettings() creates a new Typeface internally each time you invoke it and it's not a lightweight operation. Example to illustrate the scale of the issue: in one of our svg we have 20000+ms parsing + rendering time decreased to ~1500ms just by disabling this option here.

But have no good ideas how to deal with it.

folkyatina avatar Jun 26 '21 03:06 folkyatina