diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index eb514159c..4065fd644 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -561,7 +561,7 @@ func (obj *Object) Text() *d2target.MText { } if obj.OuterSequenceDiagram() == nil { - if obj.IsContainer() { + if obj.IsContainer() && obj.Attributes.Shape.Value != "text" { fontSize = obj.Level().LabelSize() } } else {