You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
349 B
21 lines
349 B
3 years ago
|
package main
|
||
|
|
||
|
//go:generate go run nerdfont-process-css.go
|
||
|
|
||
|
import (
|
||
|
"barista.run/pango/icons"
|
||
|
)
|
||
|
|
||
|
type Glyph struct {
|
||
|
Key string
|
||
|
Rune rune
|
||
|
}
|
||
|
|
||
|
func installNerdFontProvider(face string) *icons.Provider {
|
||
|
nf := icons.NewProvider("nf")
|
||
|
nf.Font(face)
|
||
|
for _, glyph := range NerdFontGlyphs {
|
||
|
nf.Symbol(glyph.Key, string(glyph.Rune))
|
||
|
}
|
||
|
return nf
|
||
|
}
|