mirror of
https://github.com/bloeys/nterm.git
synced 2025-12-29 14:38:19 +00:00
Make TextRun struct to clean GetTextRuns
This commit is contained in:
4
main.go
4
main.go
@ -165,8 +165,8 @@ func (p *program) Update() {
|
||||
|
||||
if imgui.Button("Print Runs") {
|
||||
runs := p.GlyphRend.GetTextRuns(textToShow)
|
||||
for _, r := range runs {
|
||||
fmt.Printf("%s; runes: %#x\n\n", string(r), r)
|
||||
for _, run := range runs {
|
||||
fmt.Printf("%s; runes: %#x\n\n", string(run.Runes), run.Runes)
|
||||
}
|
||||
fmt.Printf("----------------\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user