In previous iText 7 Core versions, the font-size attribute in SVG’s text element was in some specific cases being calculated incorrectly.
This happened because iText would alternatively use default behavior when font size-relative length units (such as em, rem, etc.) are used. However, in iText 7 Core version 7.1.14 the correct rendering of these values is supported.
Moreover, the conventional default behavior is applied to units 100% and 1em of font-size elements that do not have parents to relate to.
You can consult the following link for more information on SVG font-size documentation: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size.
Example input SVG:
Font size default behavior SVG test file:
The iText 7 Core code for generating the PDF from SVG remains the same: