Open 3ter opened 3 years ago
As shown in the example it's possible to write to the same text object with different colors.
basicTxt.Color = colornames.Red fmt.Fprintln(basicTxt, "Hello, text!") basicTxt.Color = colornames.Green fmt.Fprintln(basicTxt, "I support multiple lines!") basicTxt.Color = colornames.Blue fmt.Fprintf(basicTxt, "And I'm an %s, yay!", "io.Writer")
Could the same be done with the font face to change the size or font-weigth?
The workaround for me is to create separate text objects (which is a little bit more effort in terms of aligning those letters properly).
As shown in the example it's possible to write to the same text object with different colors.
Could the same be done with the font face to change the size or font-weigth?
The workaround for me is to create separate text objects (which is a little bit more effort in terms of aligning those letters properly).