Added SetFaceSet to registrar
This commit is contained in:
@@ -10,6 +10,7 @@ import "git.tebibyte.media/tomo/nasin/internal/icons/xdg"
|
||||
import "git.tebibyte.media/tomo/nasin/internal/style/tss"
|
||||
import "git.tebibyte.media/tomo/nasin/internal/icons/fallback"
|
||||
import "git.tebibyte.media/tomo/nasin/internal/style/fallback"
|
||||
import "git.tebibyte.media/tomo/nasin/internal/faces/fallback"
|
||||
|
||||
type Registrar struct {
|
||||
backend *x.Backend
|
||||
@@ -57,3 +58,11 @@ func (this *Registrar) SetIconSet () error {
|
||||
this.backend.SetIconSet(iconSet)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *Registrar) SetFaceSet () error {
|
||||
// TODO replace this with something that uses findfont, and caches and
|
||||
// refcounts the faces
|
||||
faceSet := fallbackFaces.New()
|
||||
this.backend.SetFaceSet(faceSet)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user