var formattedText = new FormattedText("Text-*+*&$%",
CultureInfo.InvariantCulture,
FlowDirection.LeftToRight,
new Typeface("Heebo"), // Heebo, roboto, arial (etc) always behave differently.
100,
new SolidColorBrush(Color.FromRgb(0, 0, 0)),
VisualTreeHelper.GetDpi(this).PixelsPerDip);
Heebo and roboto are not Windows fonts; do you actually have them installed on your system? In our test, the font family falls back to Segoe when SvgExporter gets to examine the GlyphRun generated by your TextNode. This might have different measures than the font browsers or SVG viewers fall back to when not finding actual font (or browsers might be downloading them if not installed with OS).
This build changes text alignments used, so it might depend less on font measures -
https://mindfusion.eu/_beta/wpfdiag394.zipWe find it working well enough for our advertised scenarios, and that will be all from us on the subject. If still not aligned as you expect it, only thing we can do is add some way to let you inject your own SVG <text> attributes for the custom-drawn text.
Regards,
Slavcho
Mindfusion