▲ | rjsw 7 days ago | |||||||
You can't know the size of an SVG <text> element. | ||||||||
▲ | skrebbel 6 days ago | parent [-] | |||||||
why not? if you control the font and the font size then can't you have harfbuzz tell you how wide each glyph is going to be, and it'll fit precisely? (assuming the browser also uses harfbuzz for this, which it does) | ||||||||
|