The text should be the same size as long as they are defined the same and the SVG diagram is scaled at 1:1.
However, if your SVG has a viewBox
, it will probably end up scaled differently, thus affecting the font size. Even if the font size is defined in real-world/physical units like points (pt) or centimetres (cm).