v2.0.0-alpha.2
Pre-release
Pre-release
·
286 commits
to main
since this release
What's Changed
Added
-
feat: upgrade resvg to 0.22.0
Support
svgreferenced by<use>, this is often used in svg sprite.<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg id="svg1" xmlns="http://www.w3.org/2000/svg"> <rect width="50%" height="50%" fill="green" /> </svg> <use id="use1" x="50%" y="50%" xlink:href="#svg1" /> </svg>
-
feat: upgrade fontdb to 0.9.0, loading system fonts will become faster.
There are many CJK fonts installed in my local OS, the test result is 2.5 times faster:
- Before:
Loaded 1085 font faces in 860.447ms. - After:
Loaded 1085 font faces in 339.665ms.
- Before: