Publication date: 07/08/2024

Draw Text

As shown in the “Hello World” example, text is added to a scene using the Text function.

Text( horz, vert, size, string, <billboard>)

horz can be Left, Center, or Right justification.

vert can be Top, Middle, Baseline, or Bottom justification.

size represents the height of a capital letter M in model coordinates.

string is the text to draw.

billboard is an optional argument that causes the text to rotate with the model. Text with this option always faces the viewer.

The font is always the JMP Text font. You can change the text font from the preferences menu, but because of the way JMP caches fonts for scenes, changes might not take effect until JMP is restarted.

Note: Text is not part of the standard OpenGL definition.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).