File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -740,6 +740,30 @@ func (e *Edge) SetFontColor(v string) *Edge {
740
740
return e
741
741
}
742
742
743
+ // SetFontName
744
+ // Font used for text.
745
+ // https://graphviz.gitlab.io/_pages/doc/info/attrs.html#a:fontname
746
+ func (g * Graph ) SetFontName (v string ) * Graph {
747
+ g .SafeSet (string (fontNameAttr ), v , "Times-Roman" )
748
+ return g
749
+ }
750
+
751
+ // SetFontName
752
+ // Font used for text.
753
+ // https://graphviz.gitlab.io/_pages/doc/info/attrs.html#a:fontname
754
+ func (n * Node ) SetFontName (v string ) * Node {
755
+ n .SafeSet (string (fontNameAttr ), v , "Times-Roman" )
756
+ return n
757
+ }
758
+
759
+ // SetFontName
760
+ // Font used for text.
761
+ // https://graphviz.gitlab.io/_pages/doc/info/attrs.html#a:fontname
762
+ func (e * Edge ) SetFontName (v string ) * Edge {
763
+ e .SafeSet (string (fontNameAttr ), v , "Times-Roman" )
764
+ return e
765
+ }
766
+
743
767
// SetFontSize
744
768
// Font size, in points, used for text.
745
769
// https://graphviz.gitlab.io/_pages/doc/info/attrs.html#a:fontsize
You can’t perform that action at this time.
0 commit comments