MCPcopy Create free account
hub / github.com/cogentcore/core / AddFontPaths

Method AddFontPaths

paint/fontlib.go:218–222  ·  view source on GitHub ↗
(paths ...string)

Source from the content-addressed store, hash-verified

216}
217
218func (fl *FontLib) AddFontPaths(paths ...string) bool {
219 fl.Init()
220 fl.FontPaths = append(fl.FontPaths, paths...)
221 return fl.UpdateFontsAvail()
222}
223
224// UpdateFontsAvail scans for all fonts we can use on the FontPaths
225func (fl *FontLib) UpdateFontsAvail() bool {

Callers 2

InitFontPathsMethod · 0.95
InitFontPathsMethod · 0.95

Calls 2

InitMethod · 0.95
UpdateFontsAvailMethod · 0.95

Tested by 1

InitFontPathsMethod · 0.76