MCPcopy Create free account
hub / github.com/tdewolff/canvas / String

Method String

font.go:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128)
129
130func (variant FontVariant) String() string {
131 switch variant {
132 case FontNormal:
133 return "Normal"
134 case FontSubscript:
135 return "Subscript"
136 case FontSuperscript:
137 return "Superscript"
138 case FontSmallcaps:
139 return "Smallcaps"
140 }
141 return "Unknown"
142}
143
144////////////////////////////////////////////////////////////////
145

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected