发布日期: 11/15/2021

Drawing Text

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

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.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).