From ba1438b7000a137ce1b8c16575084e8b14a9e4bc Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 6 Sep 2024 00:33:51 -0400 Subject: [PATCH] SetTabWidth now takes in an Int26_6, and doesn't use emspaces --- setter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setter.go b/setter.go index 06c671d..f487694 100644 --- a/setter.go +++ b/setter.go @@ -18,7 +18,7 @@ type TypeSetter struct { face font.Face width, height int wrap bool - tabWidth int + tabWidth fixed.Int26_6 minWidth fixed.Int26_6 layoutBounds image.Rectangle @@ -216,8 +216,8 @@ func (setter *TypeSetter) SetHeight (heignt int) { setter.height = heignt } -// SetTabWidth sets the distance between tab stops in em spaces. -func (setter *TypeSetter) SetTabWidth (tabWidth int) { +// SetTabWidth sets the distance between tab stops. +func (setter *TypeSetter) SetTabWidth (tabWidth fixed.Int26_6) { if setter.tabWidth == tabWidth { return } setter.layoutClean = false setter.alignClean = false