How do you create a text outline?

ygreq's icon

Hi folks,

Any idea how to create a text outline while using [jit.gl.text]? I added an example below.

Thank you so much,
ygreq

Source Audio's icon

mode outline

ygreq's icon

Thank you, Source Audio. I actually did not know about this function. But what I actually wanted was to control the color of the line as well as the color of the solid (interior). To use as a subtitle. Kind of like what you have in the example below. White text with dark shadow all around.

Any idea on how to achieve this?

Source Audio's icon

If you can't find the attributes for text colour, I guess I can't find them as well.

What did surprise me at the time I had a bit of interest in jit.gl.text was that text size changed a lot,
if one switched from 2d to 3d or outline, which made me forget about it, and I was not taking any notice
of that stuff ever since.
Too much hassle for me.

Len Richardson's icon

It seems that @mode outline does only work with gl2 and not with gl3.