Sergei Nikolaev

Results 14 comments of Sergei Nikolaev

Hello, I fixed same error (`Error: FILE_ENDED`) with PR #209.

Hello @ZJONSSON, can you please review my PR #209?

Hello @ILOVEPIE! It is to parse and make color fonts like [Colortube](https://www.fontspace.com/colortube-font-f28146) or [Fattern](https://www.fontspace.com/fattern-font-f48474) where SVG documents are embedded directly into a font file instead of being converted into glyphs....

Ok, I see your point and will try to find time to implement drawing as part of this PR.

I've added the ability to draw SVGs. Before drawing SVG images must be prepared by calling `await font.prepareSVGImages()`. It will render SVGs as HTMLImageElements and cache them. It's also possible...

Thank you @Connum for the feedback! It's difficult to prepare images lazily, because `draw` is synchronous and `prepareSvgImages` is asynchronous... But the problem is clear to me now and I'll...

It will be interesting to see your lazy loading implementation. But before I've read your message I've already found a way to implement it. It is now possible to add...

Thank you, @Connum , I've added `svgImage` getter. Does it look good to you? I've also implemented decompression using native `DecompressionStream` when it's available.

> There also seem to be scaling issues when rendering SVG data in the following fonts from https://github.com/unicode-org/text-rendering-tests/tree/main/fonts > > * [TestSVGgradientTransform.otf](https://github.com/unicode-org/text-rendering-tests/blob/main/fonts/TestSVGgradientTransform.otf) > * [TestSVGgzip.otf](https://github.com/unicode-org/text-rendering-tests/blob/main/fonts/TestSVGgzip.otf) > * [TestSVGmultiGlyphs.otf](https://github.com/unicode-org/text-rendering-tests/blob/main/fonts/TestSVGmultiGlyphs.otf) Scaling issues...

The conflicts are resolved. I took inspiration from your work and made three changes: - added `drawSVG` font render option - added `getSvgImage` method to `Glyph` class - moved all...