I am trying to underline an block
element that contains text. The block has an font-size
attribute and the text within the block
is surrounded by an inline
element which has a different font-size
attribute.
Is there any way to ensure, that the line resulting from the text-decoration="underline"
of the outer block is a straight line over all the block element (without any 'gaps' - please see the attached picture) that is not changing its position with the font-size ?
My code:
<fo:block font-size="14pt" text-decoration="underline">
Some text
<fo:inline font-size="10pt"> text with a smaller font size </fo:inline>
Another text
</fo:block>
My result:
Thanks in advance!