From 22c19a8186c7b2792b2b2eea7041f6f2e5beb978 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 29 Apr 2016 09:43:00 -0400 Subject: [PATCH] Fix problem with Plane1 not being mapped to the MathJax fonts properly. Resolves issue #1451. --- unpacked/jax/output/CommonHTML/jax.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index bed4fe2bb..740cec72a 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -744,6 +744,10 @@ getCharList: function (variant,n) { var id, M, list = [], cache = variant.cache, nn = n; if (cache[n]) return cache[n]; + if (n > 0xFFFF && this.FONTDATA.RemapPlane1) { + var nv = this.FONTDATA.RemapPlane1(n,variant); + n = nv.n; variant = nv.variant; + } var RANGES = this.FONTDATA.RANGES, VARIANT = this.FONTDATA.VARIANT; if (n >= RANGES[0].low && n <= RANGES[RANGES.length-1].high) { for (id = 0, M = RANGES.length; id < M; id++) {