11-19-2025, 10:09 AM
To change the foreground color I consider as a workaround. Though it works I am still interested in the set_color method. As it is a method of the Gimp.TextLayer class I first need a class instance. I don‘t think I can change the order.
Code:
textColor = Gegl.Color.new("red") # e.g.
textLayer = Gimp.TextLayer.new(image, "Text", someFont, sometextSize, Gimp.Unit.pixel())
textLayer.set_name("Text")
textLayer.set_color(textColor)
