drawText
Draws text with its top-left corner positioned at (x, y).
Unlike raw java.awt.Graphics2D.drawString which places the font baseline at y, this follows AndroidX's convention where (x, y) is the top-left corner of the rendered text block.
Parameters
the text to render.
horizontal offset of the top-left corner.
vertical offset of the top-left corner.
the Paint to draw with, or null to keep the graphics context's current paint.
the Font to render with, or null to keep the graphics context's current font.
the opacity to render with.
Draws text with its top-left corner positioned at topLeft.
Parameters
the text to render.
coordinates of the top-left corner.
the Paint to draw with, or null to keep the graphics context's current paint.
the Font to render with, or null to keep the graphics context's current font.
the opacity to render with.
Draws textLayout with its top-left corner positioned at topLeft.
Parameters
the pre-computed text layout to render.
coordinates of the top-left corner.
the Paint to draw with, or null to keep the graphics context's current paint.
the opacity to render with.