SVG icon indicating copy to clipboard operation
SVG copied to clipboard

X/Y text offset doesn't work

Open olhadrozd opened this issue 8 years ago • 3 comments

The following code is rendered incorrectly: <text fill="#000" y="9" dy="0.71em">8.0e+5</text>

Rendered by SVG lib: capture1

Rendered by Internet Browser: capture

olhadrozd avatar Sep 08 '17 10:09 olhadrozd

You just need to define "text-anchor: middle" style. But dy="71em" doesn't work for some reason. The library calculates font size incorrectly.

Alexandor84 avatar Sep 20 '17 15:09 Alexandor84

we are accepting pull requests ;)

tebjan avatar Oct 16 '17 14:10 tebjan

Could we get the pull requests merged? There is one for .Net Core in particular that I would like to see merged that was completed 5 months ago.

erslater avatar Oct 17 '17 17:10 erslater