html5动力学文本ascii

时间:2012-06-27 17:07:19

标签: html5 text canvas ascii kineticjs

如何在动力学中将ascii字符可视化为“人类可读”?

var figure = new Kinetic.Text({
        x: 75/2,
        y: 75/2,
        text: "♘",
        fontSize: 30,
        fontFamily: "Calibri",
        textFill: "green",
        align: "center",
        verticalAlign: "middle"
    });

1 个答案:

答案 0 :(得分:0)

这与KineticJS无关。您正在询问如何获取包含HTML字符实体的字符串并解码实体。有关该问题的答案,请参阅Convert HTML Character Entities back to regular text using javascript