setFont
|
[, integer Orient ] )
|
|
Name
|
|
A string containing the typeface name of the font.
|
|
Height
|
|
An integer specifying the desired height of the font in logical units. The font height can be specified in the following ways:
|
|
Greater than 0, in which case the height is transformed into pixels and matched against the cell height of the available fonts.
|
Equal to 0, in which case a reasonable default size is used.
|
Less than 0, in which case the height is transformed into pixels and the absolute value is matched against the character height of the available fonts.
|
|
Charset
|
|
An integer specifying the font's character set.
|
|
Bold
|
|
A boolean integer specifying weather the font is bold. Must be TRUE or FALSE.
|
|
Italic
|
|
A boolean integer specifying weather the font is italic. Must be TRUE or FALSE.
|
|
Underline
|
|
A boolean integer specifying weather the font is underlined. Must be TRUE or FALSE.
|
|
Orient
|
|
An integer specifying the angle between the baseline of a character and the horizontal. The angle is measured clockwise in degrees.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
|
The following statements sets a font and draws a text on a sample image:
|
|
setCurDir("samples")
|
loadIm (1,"sample14.iwd")
|
setFont ("Arial", 20, 0, TRUE, FALSE, FALSE, -30)
|
drawText (1, "Text message", 100, 100, 255, 0, 0)
|
|