MCPcopy Index your code
hub / github.com/g3n/engine / SetPointSize

Method SetPointSize

text/font.go:88–95  ·  view source on GitHub ↗

SetPointSize sets the point size of the font.

(size float64)

Source from the content-addressed store, hash-verified

86
87// SetPointSize sets the point size of the font.
88func (f *Font) SetPointSize(size float64) {
89
90 if size == f.attrib.PointSize {
91 return
92 }
93 f.attrib.PointSize = size
94 f.changed = true
95}
96
97// SetDPI sets the resolution of the font in dots per inches (DPI).
98func (f *Font) SetDPI(dpi float64) {

Callers 1

SetAttributesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected