[Pkg-javascript-commits] [mathjax] 01/01: Disable extra fonts until we find a way to correctly ship them in Debian.
Dmitry Shachnev
mitya57-guest at moszumanska.debian.org
Wed Feb 12 15:11:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
mitya57-guest pushed a commit to branch master
in repository mathjax.
commit ca45f3470fa9069735ee2825381709b144e7f9b1
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Wed Feb 12 19:11:27 2014 +0400
Disable extra fonts until we find a way to correctly ship them in Debian.
---
debian/changelog | 2 ++
debian/patches/no_extra_fonts.diff | 54 ++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 57 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 4d81854..cdffabb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ mathjax (2.3-1) UNRELEASED; urgency=low
* New upstream release.
* Update debian/copyright for new bundled fonts.
* Update to newer versions of packer and combiner scripts.
+ * Disable extra fonts until we find a way to correctly ship them
+ in Debian.
-- Dmitry Shachnev <mitya57 at gmail.com> Fri, 24 Jan 2014 23:51:09 +0400
diff --git a/debian/patches/no_extra_fonts.diff b/debian/patches/no_extra_fonts.diff
new file mode 100644
index 0000000..e0dd25d
--- /dev/null
+++ b/debian/patches/no_extra_fonts.diff
@@ -0,0 +1,54 @@
+Description: disable extra fonts, we do not ship them at the moment
+Author: Dmitry Shachnev <mitya57 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-02-12
+
+--- a/unpacked/extensions/MathMenu.js
++++ b/unpacked/extensions/MathMenu.js
+@@ -1087,13 +1087,7 @@
+ ITEM.RADIO(["TeXImage","TeX (image)"], "font", {action: MENU.Font}),
+ ITEM.RULE(),
+ ITEM.RADIO(["STIXLocal","STIX (local)"], "font", {action: MENU.Font}),
+- ITEM.RADIO(["STIXWeb","STIX (web)"], "font", {action: MENU.Font}),
+- ITEM.RULE(),
+- ITEM.RADIO(["AsanaMathWeb","Asana Math (web)"], "font", {action: MENU.Font}),
+- ITEM.RADIO(["GyrePagellaWeb","Gyre Pagella (web)"], "font", {action: MENU.Font}),
+- ITEM.RADIO(["GyreTermesWeb","Gyre Termes (web)"], "font", {action: MENU.Font}),
+- ITEM.RADIO(["LatinModernWeb","Latin Modern (web)"], "font", {action: MENU.Font}),
+- ITEM.RADIO(["NeoEulerWeb","Neo Euler (web)"], "font", {action: MENU.Font})
++ ITEM.RADIO(["STIXWeb","STIX (web)"], "font", {action: MENU.Font})
+ ),
+ ITEM.SUBMENU(["ContextMenu","Contextual Menu"], {hidden:!CONFIG.showContext},
+ ITEM.RADIO("MathJax", "context"),
+--- a/unpacked/jax/output/HTML-CSS/jax.js
++++ b/unpacked/jax/output/HTML-CSS/jax.js
+@@ -334,11 +334,6 @@
+ else if (settings.font === "TeXimage") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = ""}
+ else if (settings.font === "STIXlocal") {this.config.availableFonts = ["STIX"]; this.config.preferredFont = "STIX"; this.config.webFont = "STIX-Web"}
+ else if (settings.font === "STIXWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "STIX-Web"}
+- else if (settings.font === "AsanaMathWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "Asana-Math"}
+- else if (settings.font === "GyrePagellaWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "Gyre-Pagella"}
+- else if (settings.font === "GyreTermesWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "Gyre-Termes"}
+- else if (settings.font === "LatinModernWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "Latin-Modern"}
+- else if (settings.font === "NeoEulerWeb") {this.config.availableFonts = []; this.config.preferredFont = ""; this.config.webFont = "Neo-Euler"}
+ }
+ var font = this.Font.findFont(this.config.availableFonts,this.config.preferredFont);
+ if (!font && this.allowWebFonts) {font = this.config.webFont; if (font) {this.webFonts = true}}
+--- a/unpacked/jax/output/SVG/jax.js
++++ b/unpacked/jax/output/SVG/jax.js
+@@ -99,15 +99,6 @@
+ if (settings.scale) {this.config.scale = settings.scale}
+ this.SUPER(arguments).Config.apply(this,arguments);
+ this.fontInUse = this.config.font;
+- if (settings.font && settings.font !== "Auto") {
+- if (settings.font === "TeXWeb") {this.fontInUse = "TeX"}
+- else if (settings.font === "STIXWeb") {this.fontInUse = "STIX-Web"}
+- else if (settings.font === "AsanaMathWeb") {this.fontInUse = "Asana-Math"}
+- else if (settings.font === "GyrePagellaWeb") {this.fontInUse = "Gyre-Pagella"}
+- else if (settings.font === "GyreTermesWeb") {this.fontInUse = "Gyre-Termes"}
+- else if (settings.font === "LatinModernWeb") {this.fontInUse = "Latin-Modern"}
+- else if (settings.font === "NeoEulerWeb") {this.fontInUse = "Neo-Euler"}
+- }
+ this.fontDir += "/" + this.fontInUse;
+ if (!this.require) {this.require = []}
+ this.require.push(this.fontDir+"/fontdata.js");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fd82abc
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_extra_fonts.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/mathjax.git
More information about the Pkg-javascript-commits
mailing list