MCPcopy Create free account
hub / github.com/tdewolff/canvas / LoadLocalFont

Function LoadLocalFont

font.go:239–242  ·  view source on GitHub ↗

LoadLocalFont loads a font from the system's fonts.

(name string, style FontStyle)

Source from the content-addressed store, hash-verified

237
238// LoadLocalFont loads a font from the system's fonts.
239func 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.
245func LoadSystemFont(name string, style FontStyle) (*Font, error) {

Callers

nothing calls this directly

Calls 1

LoadSystemFontFunction · 0.85

Tested by

no test coverage detected