~eliasnaur/gio

a695a115ce9edd68dd614630b5fa3cc3ca425647 — Elias Naur 2 years ago 47c5859
ui/measure: rename Faces.Cfg to Config

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 3 insertions(+), 3 deletions(-)

M ui/measure/measure.go
M ui/measure/measure.go => ui/measure/measure.go +3 -3
@@ 17,7 17,7 @@ import (
)

type Faces struct {
	Cfg         *ui.Config
	Config      *ui.Config
	faceCache   map[faceKey]*textFace
	layoutCache map[layoutKey]cachedLayout
	pathCache   map[pathKey]cachedPath


@@ 103,7 103,7 @@ func (f *Faces) init() {
}

func (f *textFace) Layout(str string, singleLine bool, maxWidth int) *text.Layout {
	ppem := fixed.Int26_6(f.faces.Cfg.Val(f.size)*64 + .5)
	ppem := fixed.Int26_6(f.faces.Config.Val(f.size)*64 + .5)
	lk := layoutKey{
		f:          f.font.Font,
		ppem:       ppem,


@@ 122,7 122,7 @@ func (f *textFace) Layout(str string, singleLine bool, maxWidth int) *text.Layou
}

func (f *textFace) Path(str text.String) ui.OpBlock {
	ppem := fixed.Int26_6(f.faces.Cfg.Val(f.size)*64 + .5)
	ppem := fixed.Int26_6(f.faces.Config.Val(f.size)*64 + .5)
	pk := pathKey{
		f:    f.font.Font,
		ppem: ppem,