Fix rendering of asian characters

This commit is contained in:
Julian Viereck 2011-01-28 22:08:55 +08:00 committed by Fabian Jakobs
commit 8a194646d7
2 changed files with 4 additions and 1 deletions

View file

@ -109,7 +109,9 @@
for (var i=0; i<items.length; i++) {
alert(items[i] + "juhu");
}
}</script>
}
// A magic character: >> ぁ <<
</script>
<script type="text/editor" id="csstext">.text-layer {
font-family: Monaco, "Courier New", monospace;

View file

@ -274,6 +274,7 @@ var Text = function(parentEl) {
}
var _self = this;
var characterWidth = this.config.characterWidth;
function addToken(token, value) {
var output = value
.replace(/&/g, "&amp;")