LoadLocalFont loads a font from the system's fonts.
(name string, style FontStyle)
| 237 | |
| 238 | // LoadLocalFont loads a font from the system's fonts. |
| 239 | func LoadLocalFont(name string, style FontStyle) (*Font, error) { |
| 240 | log.Println("WARNING: github.com/tdewolff/canvas/LoadLocalFont is deprecated, please use github.com/tdewolff/canvas/LoadSystemFont") // TODO: remove |
| 241 | return LoadSystemFont(name, style) |
| 242 | } |
| 243 | |
| 244 | // LoadSystemFont loads a font from the system's fonts. |
| 245 | func LoadSystemFont(name string, style FontStyle) (*Font, error) { |
nothing calls this directly
no test coverage detected