Make TextRun struct to clean GetTextRuns

This commit is contained in:
bloeys
2022-07-08 08:09:12 +04:00
parent 9388bc0c92
commit d8289139d3
2 changed files with 47 additions and 39 deletions

View File

@ -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")
}