From 2e5faa8edcfaa5c57ffdeddb21548f7a566e1255 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 12 Jan 2020 12:25:23 +0100 Subject: [PATCH] Add `direction: ltr;` to the canvases used in `examples/learning`, to ensure correct text rendering (issue 11457) This is currently the only possible way of addressing the issue, until https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/direction becomes generally available in browsers. *Note:* This will also require manually updating https://mozilla.github.io/pdf.js/examples/#interactive-examples --- examples/learning/helloworld.html | 2 +- examples/learning/helloworld64.html | 2 +- examples/learning/prevnext.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/learning/helloworld.html b/examples/learning/helloworld.html index 74ef35e59..acd81709a 100644 --- a/examples/learning/helloworld.html +++ b/examples/learning/helloworld.html @@ -8,7 +8,7 @@

'Hello, world!' example

- + diff --git a/examples/learning/helloworld64.html b/examples/learning/helloworld64.html index e8a023948..972e21326 100644 --- a/examples/learning/helloworld64.html +++ b/examples/learning/helloworld64.html @@ -8,7 +8,7 @@

'Hello, world!' example

- + diff --git a/examples/learning/prevnext.html b/examples/learning/prevnext.html index 2b9159411..a4366f54d 100644 --- a/examples/learning/prevnext.html +++ b/examples/learning/prevnext.html @@ -16,7 +16,7 @@
- +