Forum How do I...?

Canvas RTL support

GeorgeWaller
I am trying to render html with a canvas (through DocRaptor) with the direction set to RTL. This works when rendering in the browser but as far as I can tell with prince rtl is not supported on canvas elements when rendered with Prince.

Are you able to confirm whether canvas can be used with rtl?
mikeday
Possibly not, are you drawing text on the canvas?
GeorgeWaller
Yes, with
canvas.fillText(
and setting the canvas to RTL so that all text draws is drawn RTL