W3cubDocs

/Graphviz

fontsize

Font size, in points, used for text

type: double, default: 14.0, minimum: 1.0

digraph {
    label="40pt Graph Label"
    fontsize="40"
    subgraph cluster_a {
      label="30pt Cluster Label"
      fontsize="30pt"
      "20pt Node" [fontsize="20pt"];
      "20pt Node"-> "20pt Node" [label="10pt Edge" fontsize="10"]
    }
}
Valid on:
  • Edges
  • Nodes
  • Graphs
  • Clusters

© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/fontsize/