Unicode text width calculated incorrectly? (Excess padding when used in record shape + spaces have zero width)
Steps to reproduce
Compare the following two shapes, one with Unicode text and one with plain text:
digraph structs {
rankdir="TB"
charset="UTF-8"
node [shape=record];
struct1 [label="{𝗰𝗮𝗹𝗹𝗖𝗼𝗻𝘁𝗲𝘅𝘁.𝗰𝗮𝗹𝗹() | {{function | params} | {string | interface\{\}}} | 𝘳𝘰𝘶𝘵𝘦 𝘧𝘢𝘬𝘦 𝘤𝘰𝘥𝘦}"];
struct2 [label="{callContext.call()| {{function | params} | {string | interface\{\}}} | route fake code}"];
}
Expected Behaviour
Both shapes have similar amounts of whitespace padding on right and left sides. Spaces displayed normally.
Actual Behaviour
Shape with Unicode text has much more whitespace padding, regardless of engine used. Spaces within Unicode text not shown.
replication on Graphviz Online
OS Version
mac OS 13.5.1 (22G90)
(but also happens with Graphviz Online)
Graphviz Version
dot - graphviz version 9.0.0 (20230911.1827)
(but also happens with Graphviz Online)
Additional info
Bold and italic Unicode substitutions generated with https://lingojam.com/BoldTextGenerator and https://lingojam.com/ItalicTextGenerator
(used to format text within record without switching to much more verbose HTML syntax)