Most working, but once you add the font-css file to the web page, there is no font drawn at all

This commit is contained in:
Julian Viereck 2011-06-22 01:28:17 +02:00
parent f346014c12
commit a8dcb0dcd6
5 changed files with 235 additions and 108 deletions

View file

@ -42,11 +42,17 @@ function CanvasProxy(width, height) {
"stroke",
"clip",
"measureText",
"isPointInPath"
"isPointInPath",
"$setCurrentX",
"$addCurrentX",
"$saveCurrentX",
"$restoreCurrentX",
"$showText"
];
function buildFuncCall(name) {
return function() {
console.log("funcCall", name)
// console.log("funcCall", name)
stack.push([name, Array.prototype.slice.call(arguments)]);
}
}
@ -103,6 +109,8 @@ function CanvasProxy(width, height) {
}
CanvasProxy.prototype.flush = function() {
// postMessage("log");
// postMessage(JSON.stringify([this.$stack.length]));
postMessage("canvas_proxy_stack");
postMessage(JSON.stringify(this.$stack));
this.$stack.length = 0;