mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
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:
parent
f346014c12
commit
a8dcb0dcd6
5 changed files with 235 additions and 108 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue