I got better results by using centered alignment and fixed-width text. Embedding html in svg was so unreliable, I gave up on it, but it seems to me that should be the right way of doing it.
> On Feb 1, 2017, at 8:16 AM, [email protected] wrote: > > Hello everyone, > > I've been playing around with Elm recently and there are numerous things I > really like about it. > I'm trying to create a simple SVG app (rectangle, text, arrow), but can't > seem to align them properly without getBBox (not even with monospaced fonts). > E.g. how do you scale a G from the center otherwise? > > Is there really no way to get back any information from the browser without a > proper event? > > There seems to be a related topic, without any answers: > https://groups.google.com/forum/#!topic/elm-discuss/VvTZ2mXLYIU > > Thanks! > Pap Lőrinc > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
