Paint.RichText (gb.qt4)
Static Sub RichText ( Text As String [ , X As Float, Y As Float, Width As Float, Height As Float, Alignment As Integer ] )
Adds the specified rich text to the current path, using the current font defined by the
Font property.
-
X, Y, Width, Height : a rectangle where the text will be drawn.
-
Alignment : how the text is aligned inside the previous rectangle.
If only the text is specified, then it will be drawn at the current point, the Y coordinate being the text base line.
If only the
X and
Y arguments are specified, then the text will be drawn at the specified (
X,
Y) point, the Y coordinate being the text base line.
Otherwise, the text will be drawn inside the specified rectangle. Beware that the rectangle will not clip the text.
As just a path is created, colors defined by the <font> markup are not taken into account.