text: fix doc typos

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2022-05-24 15:47:31 -04:00
committed by Elias Naur
parent 79f037f983
commit 28acb79b82
+2 -2
View File
@@ -83,11 +83,11 @@ func (c GlyphCluster) RuneWidth() fixed.Int26_6 {
} }
type Layout struct { type Layout struct {
// Glyphs are the actual font characters for the text. The are ordered // Glyphs are the actual font characters for the text. They are ordered
// from left to right regardless of the text direction of the underlying // from left to right regardless of the text direction of the underlying
// text. // text.
Glyphs []Glyph Glyphs []Glyph
// Clusters is metadata about the shaped glyphs. It is mostly useful for // Clusters are metadata about the shaped glyphs. They are mostly useful for
// interactive text widgets like editors. The order of clusters is logical, // interactive text widgets like editors. The order of clusters is logical,
// so the first cluster will describe the beginning of the text and may // so the first cluster will describe the beginning of the text and may
// refer to the final glyphs in the Glyphs field if the text is RTL. // refer to the final glyphs in the Glyphs field if the text is RTL.