SetFontDPI sets the resolution of the font in dots per inch (DPI).
(dpi float64)
| 184 | |
| 185 | // SetFontDPI sets the resolution of the font in dots per inch (DPI). |
| 186 | func (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). |
| 194 | func (l *Label) FontDPI() float64 { |