Shiny Language Reference

Language Reference > Font Functions


Font Functions

These statements operate on a variable of type FONT

 

createfont - Creates a new font object

selectfont - Selects a font object for use

getfontheight - Returns the pixel height of a given font object

getstringwidth - Returns the pixel width of a given string if drawn in the current font

getstringheight - Returns the pixel height of a given string if drawn in the current font with the specified maximum pixel width per line

drawtext - Draws the specified text in the display panel

setfontcol - Sets the RGB colour of the given font object