forked from joejulian/gio
text: make Shaper an interface
And rename out the caching implementation to FontRegistry. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -12,12 +12,12 @@ import (
|
||||
var (
|
||||
mu sync.Mutex
|
||||
initialized bool
|
||||
shaper = new(text.Shaper)
|
||||
shaper = new(text.FontRegistry)
|
||||
)
|
||||
|
||||
// Default returns a singleton *text.Shaper that contains
|
||||
// the registered fonts.
|
||||
func Default() *text.Shaper {
|
||||
func Default() *text.FontRegistry {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
initialized = true
|
||||
|
||||
Reference in New Issue
Block a user