You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that the retriever/measurer/painter callbacks are not set when using lunasvg. So it gets no font data, and even if it did, the text would not be measured or painted. There are also no SVG + text tests.
I have a fix ready as well, two PRs: one here and one in the lunasvg fork. Basically it hooks these callbacks up and pipes them to the existing functions used in fillText. Just want to make sure this is a real issue before proceeding.
Ah thanks for making this issue. I'm not sure why the retriever function isn't being set, because I know I got the feature working, but I think it's because I picked an old commit while rebasing or something. I'll have to look.
As for the measurer and painter, that can be done in node-canvas before returning the font. The way I changed LunaSVG makes FontFace a public API.
Activity
chearon commentedon Oct 11, 2026
Ah thanks for making this issue. I'm not sure why the retriever function isn't being set, because I know I got the feature working, but I think it's because I picked an old commit while rebasing or something. I'll have to look.
As for the measurer and painter, that can be done in node-canvas before returning the font. The way I changed LunaSVG makes FontFace a public API.
I'll post back when I know more...
support <text> elements in SVGs
support <text> elements in SVGs