SetAttributes sets the font attributes.
(fa *FontAttributes)
| 147 | |
| 148 | // SetAttributes sets the font attributes. |
| 149 | func (f *Font) SetAttributes(fa *FontAttributes) { |
| 150 | |
| 151 | f.SetPointSize(fa.PointSize) |
| 152 | f.SetDPI(fa.DPI) |
| 153 | f.SetLineSpacing(fa.LineSpacing) |
| 154 | f.SetHinting(fa.Hinting) |
| 155 | } |
| 156 | |
| 157 | // updateFace updates the font face if parameters have changed. |
| 158 | func (f *Font) updateFace() { |
no test coverage detected