Layer.drawGlyph

Function/Meaning
Draw Glyph
Type
Method of Layer class
Syntax
drawGlyph(x, y, glyph, color, opa=255, aa=true, shadowlevel=0, shadowcolor=0x000000, shadowwidth=0, shadowofsx=0, shadowofsy=0)
Arguments
x Specifies the x-coordinate (in image coordinates) of the origin where character drawing starts, in pixels.
y Specifies the y-coordinate (in image coordinates) of the origin where character drawing starts, in pixels.
glyph Specifies the glyph to draw.
color Specifies the character color in 0xRRGGBB format.
opa Specifies the opacity of the character (-255 to 0 to 255).
Negative values are only valid when face is dfAlpha; in this case, opacity is removed in the shape of the character (the smaller the value, the greater the effect).
aa Specifies whether to perform anti-aliasing.
If true, anti-aliasing is performed. If false, it is not.
shadowlevel Specifies the opacity of the shadow. The appropriate value varies depending on the shadowwidth argument.
If 0 is specified, no shadow is drawn.
shadowcolor Specifies the shadow color in 0xRRGGBB format.
shadowwidth Specifies the width (blur) of the shadow. 0 is the sharpest (no blur), and increasing the value allows the shadow to be blurred.
shadowofsx Specifies the x-coordinate offset of the shadow in pixels. If 0 is specified, the shadow is drawn directly underneath.
shadowofsy Specifies the y-coordinate offset of the shadow in pixels. If 0 is specified, the shadow is drawn directly underneath.
Return Value
None (void)
Description
Draws a glyph on the layer.
For the glyph, specify an array in a format like glyph : Array[9] = [ width, height, originx, originy, incx, incy, inc, bitmap(Octet), colors ].
If the glyph's colors is omitted, it is assumed to be 256 levels.