开发者

html formatted text and canvas

开发者 https://www.devze.com 2023-01-30 08:34 出处:网络
I\'ve got a bunch of content which is html formatted, a combination of h1, ul, and p. I开发者_运维知识库\'m incorporating this content into a page which now uses canvas to create a gantt chart.

I've got a bunch of content which is html formatted, a combination of h1, ul, and p. I开发者_运维知识库'm incorporating this content into a page which now uses canvas to create a gantt chart.

Is there a way to include the html within the canvas? As the content currently exists as a blob, the thought of extracting it and putting it into a different format is a bit daunting, and there is little consistency across the content, meaning not each entry has all the same tags and structure.

Any suggestions?


As far as I know, the canvas element isn't great at drawing text. You should probably just float your html formatted text over the canvas chart.

0

精彩评论

暂无评论...
验证码 换一张
取 消