Having trouble printing a on filled rectangle. In this case, the background is orange, and the text is black. However, even though I draw the rectangle first, the black text is not visible.
B4X:
Dim tRect As Rect
tRect.Initialize(10,currentY,585,currentY+15)
pdf.Canvas.DrawRect(tRect,Colors.rgb(249,161,27),True,1)
pdfColor = Colors.Black
pdfFontSize = 8
Outprint("Product",30,currentY+2,0)
Sub Outprint(inText As String, inX As Int, inY As Int, MaxWidth As Int)
Dim subX As Int = inX
Dim subY As Int = inY + 15
Dim tFontSize As Int = pdfFontSize / GetDeviceLayoutValues.Scale
pdf.Canvas.DrawText(inText,subX,subY,pdfFontFace,tFontSize,pdfColor,pdfFontAlign)
End Sub