Integrated the new text drawer

This commit is contained in:
2023-02-15 18:45:58 -05:00
parent 234503f104
commit a0e7bf1373
7 changed files with 35 additions and 16 deletions

View File

@@ -170,6 +170,11 @@ func (setter *TypeSetter) Face () font.Face {
return setter.face
}
// Length returns the amount of runes in the typesetter.
func (setter *TypeSetter) Length () int {
return len(setter.text)
}
// RuneIterator is a function that can iterate accross a typesetter's runes.
type RuneIterator func (
index int,