comp • gb.qt4 • paint • richtextextents

Paint.RichTextExtents (gb.qt4)

Static Function RichTextExtents ( Text As String [ , Width As Float ] ) As PaintExtents

Gets the extents for a string of rich text.

The extents describe a user-space rectangle that encloses the "inked" portion of the text, as it would be drawn by Paint.RichText and Paint.Fill with no transformation matrix.

This function is an equivalent of:

Dim hTextExtents as PaintExtents
Dim sText as String


hTextExtents = Paint.PathExtents

As just a path is created, colors defined by the <font> markup are not taken into account.

See also