Closed Tienda-Electrofum closed 6 months ago
Apparently write_text()
always needs set_font()
to be set.
Alternatively you may use use_text()
as an all-in-one solution as shown here. For your example:
next_layer.use_text(text2, 20.0 , Mm(x), Mm(270.0), &bold_font);
Thank you very much for your answer @obreidenich I have tried your suggestion and it works
I'm trying to insert text on different layers but I can only insert text on the first layer. When I try to insert text into other layers, the text does not appear. I am doing something wrong?
If I uncomment the lines of the current_layer, text does appear, but only from the current_layer. The text I put in next_layer never appears no matter what I do