ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
38 stars 22 forks source link

Add support for point unit in font tag size attribute #520

Closed ylussaud closed 7 months ago

ylussaud commented 7 months ago

This is not supported by HTML 5 (see CSS fond-size) however it's still rendered by browsers and should be supported by M2Doc.

An example:

<p><font size="1pt">This is some text! (size=1pt)</font></p>

<p><font size="2pt">This is some text! (size=2pt)</font></p>

<p><font size="3pt">This is some text! (size=3pt)</font></p>

<p><font size="4pt">This is some text! (size=4pt)</font></p>

<p><font size="5pt">This is some text! (size=5pt)</font></p>

<p><font size="6pt">This is some text! (size=6pt)</font></p>

<p><font size="7pt">This is some text! (size=7pt)</font></p>

<p><font size="8pt">This is some text! (size=8pt)</font></p>

<p><font size="9pt">This is some text! (size=9pt)</font></p>

<p><font size="10pt">This is some text! (size=10pt)</font></p>

Note: above 7 the rendered size if the same.