--- /dev/null
+digraph H {
+ xdotversion=1.7
+ rankdir=LR
+ a [label=<<B>Bold text</B>>]
+ b [label=<<I>Italic text</I>>]
+ c [label=<<U>Underlined text</U>>]
+ d [label=<<O>Overstrike text</O>>]
+ e [label=<<SUB>Subscript text</SUB>>]
+ f [label=<<SUP>Superscript text</SUP>>]
+ g [label=<<S>Strikethrough text</S>>]
+ h [label=<<FONT FACE="courier">Courier text</FONT>>]
+ i [label=<<FONT POINT-SIZE="36">fontsize 36 text</FONT>>]
+}
+
assert p.returncode != 0, "syntax error was only a warning, not an error"
+@pytest.mark.xfail(strict=True)
+def test_358():
+ """
+ setting xdot version to 1.7 should enable font characteristics
+ https://gitlab.com/graphviz/graphviz/-/issues/358
+ """
+
+ # locate our associated test case in this directory
+ input = Path(__file__).parent / "358.dot"
+ assert input.exists(), "unexpectedly missing test case"
+
+ # process this with dot
+ xdot = dot("xdot", input)
+
+ for i in range(6):
+ m = re.search(f"\\bt {1 << i}\\b", xdot)
+ assert m is not None, \
+ f"font characteristic {1 << i} not enabled in xdot 1.7"
+
@pytest.mark.skipif(shutil.which("gv2gxl") is None or
shutil.which("gxl2gv") is None,
reason="GXL tools not available")