![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
||||||||||||||||
|
zeTextUse .new("text") to create the object. It uses zeFreetype to generate texture-mapped text. The image can be output to an array and used later for texture or rendered as points. :font(object) object - a zeFreetype object. Sets the Freetype object to be used to generate text bitmap. :fontsize(size) size - a number to specify the font size in point. Sets the font size to the specified number of pixels per inch. It should be calleb before calling the text() function. :text(string) string - a string of text.Parses the string and use the results as the text content. The tags of sym and /sym mark the number between them as the Unicode of a character; sup and /sup marks a string as superscript; and sub and sub makrs a string as subscript. Multi-bytes characters (e.g., Japanese and Chinese) can be used if the font file supports them. The functions returns the image width and height. :set(table) table - a Lua table. Sets text properties. Valid key-value paris are listed in the table.
|