MCPcopy
hub / github.com/g3n/engine / SetFontDPI

Method SetFontDPI

gui/label.go:186–191  ·  view source on GitHub ↗

SetFontDPI sets the resolution of the font in dots per inch (DPI).

(dpi float64)

Source from the content-addressed store, hash-verified

184
185// SetFontDPI sets the resolution of the font in dots per inch (DPI).
186func (l *Label) SetFontDPI(dpi float64) *Label {
187
188 l.style.DPI = dpi
189 l.SetText(l.text)
190 return l
191}
192
193// FontDPI returns the resolution of the font in dots per inch (DPI).
194func (l *Label) FontDPI() float64 {

Callers 1

buildLabelFunction · 0.95

Calls 1

SetTextMethod · 0.95

Tested by

no test coverage detected