diff --git a/dockers/MathJaxFonts/Dockerfile b/dockers/MathJaxFonts/Dockerfile index b6fd3c5a..c0aa5e94 100644 --- a/dockers/MathJaxFonts/Dockerfile +++ b/dockers/MathJaxFonts/Dockerfile @@ -3,7 +3,8 @@ MAINTAINER xymostech # Install things RUN apt-get -qq update -RUN apt-get -qqy install git dvipng default-jre default-jdk texlive wget fontforge mftrace fonttools optipng advancecomp man-db build-essential unzip zlib1g-dev || true +RUN apt-get -qqy install git dvipng default-jre default-jdk texlive wget fontforge mftrace fonttools optipng advancecomp man-db build-essential unzip zlib1g-dev python-fontforge ruby || true +RUN gem install ttfunk --version 1.1.1 # Download yuicompressor RUN mkdir /usr/share/yui-compressor/ @@ -27,18 +28,8 @@ RUN unzip -d sfnt2woff woff-code-latest.zip RUN make -C sfnt2woff RUN mv sfnt2woff/sfnt2woff /usr/bin/ -# Add a symlink so MathJax can find the TeX fonts -RUN ln -s /usr/share/texlive/texmf-dist /usr/share/ - # Download and setup MathJax-dev -RUN git clone "https://github.com/mathjax/MathJax-dev.git" +RUN git clone "https://github.com/khan/MathJax-dev.git" RUN cp MathJax-dev/default.cfg MathJax-dev/custom.cfg RUN make -C MathJax-dev custom.cfg.pl -# Fix for a new version of ttx -RUN sed -i "s/Space.otf/Space.ttf/" MathJax-dev/fonts/OTF/TeX/makeFF - -# Change the names of the generated fonts and font files to KaTeX -RUN sed -i "s/MathJax/KaTeX/g" MathJax-dev/fonts/OTF/TeX/makeFF -RUN sed -i "s/MathJax/KaTeX/g" MathJax-dev/fonts/OTF/TeX/Makefile - diff --git a/static/fonts/KaTeX_AMS-Regular.eot b/static/fonts/KaTeX_AMS-Regular.eot index 8021fa01..89cc0033 100644 Binary files a/static/fonts/KaTeX_AMS-Regular.eot and b/static/fonts/KaTeX_AMS-Regular.eot differ diff --git a/static/fonts/KaTeX_AMS-Regular.ttf b/static/fonts/KaTeX_AMS-Regular.ttf index d67b5d60..d73435a1 100644 Binary files a/static/fonts/KaTeX_AMS-Regular.ttf and b/static/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/static/fonts/KaTeX_AMS-Regular.woff b/static/fonts/KaTeX_AMS-Regular.woff index 5a011c51..a537b12a 100644 Binary files a/static/fonts/KaTeX_AMS-Regular.woff and b/static/fonts/KaTeX_AMS-Regular.woff differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.eot b/static/fonts/KaTeX_Caligraphic-Bold.eot index 0b229764..8232a2e6 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Bold.eot and b/static/fonts/KaTeX_Caligraphic-Bold.eot differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.ttf b/static/fonts/KaTeX_Caligraphic-Bold.ttf index a470ea8e..56dbd4c0 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Bold.ttf and b/static/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.woff b/static/fonts/KaTeX_Caligraphic-Bold.woff index 1c3887e1..48d3e225 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Bold.woff and b/static/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.eot b/static/fonts/KaTeX_Caligraphic-Regular.eot index 0b9b73a9..eef023ab 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Regular.eot and b/static/fonts/KaTeX_Caligraphic-Regular.eot differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.ttf b/static/fonts/KaTeX_Caligraphic-Regular.ttf index 232b7d95..5905bc90 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Regular.ttf and b/static/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.woff b/static/fonts/KaTeX_Caligraphic-Regular.woff index 0f0021fb..96cb58ea 100644 Binary files a/static/fonts/KaTeX_Caligraphic-Regular.woff and b/static/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.eot b/static/fonts/KaTeX_Fraktur-Bold.eot index 354746b5..3dc15cb6 100644 Binary files a/static/fonts/KaTeX_Fraktur-Bold.eot and b/static/fonts/KaTeX_Fraktur-Bold.eot differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.ttf b/static/fonts/KaTeX_Fraktur-Bold.ttf index 27697fc2..fcf06292 100644 Binary files a/static/fonts/KaTeX_Fraktur-Bold.ttf and b/static/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.woff b/static/fonts/KaTeX_Fraktur-Bold.woff index 5ad790ef..521e58ac 100644 Binary files a/static/fonts/KaTeX_Fraktur-Bold.woff and b/static/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.eot b/static/fonts/KaTeX_Fraktur-Regular.eot index ac3ebc5f..90387b0a 100644 Binary files a/static/fonts/KaTeX_Fraktur-Regular.eot and b/static/fonts/KaTeX_Fraktur-Regular.eot differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.ttf b/static/fonts/KaTeX_Fraktur-Regular.ttf index 8e115aa8..cdb3aa1b 100644 Binary files a/static/fonts/KaTeX_Fraktur-Regular.ttf and b/static/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.woff b/static/fonts/KaTeX_Fraktur-Regular.woff index 808783aa..a70e8823 100644 Binary files a/static/fonts/KaTeX_Fraktur-Regular.woff and b/static/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/static/fonts/KaTeX_Greek-Bold.ttf b/static/fonts/KaTeX_Greek-Bold.ttf index 5abc35e5..2ef7f3d5 100644 Binary files a/static/fonts/KaTeX_Greek-Bold.ttf and b/static/fonts/KaTeX_Greek-Bold.ttf differ diff --git a/static/fonts/KaTeX_Greek-BoldItalic.ttf b/static/fonts/KaTeX_Greek-BoldItalic.ttf index fb65df44..8804add4 100644 Binary files a/static/fonts/KaTeX_Greek-BoldItalic.ttf and b/static/fonts/KaTeX_Greek-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX_Greek-Italic.ttf b/static/fonts/KaTeX_Greek-Italic.ttf index c7c6ef02..c7986b0b 100644 Binary files a/static/fonts/KaTeX_Greek-Italic.ttf and b/static/fonts/KaTeX_Greek-Italic.ttf differ diff --git a/static/fonts/KaTeX_Greek-Regular.ttf b/static/fonts/KaTeX_Greek-Regular.ttf index 02e60eae..85d32112 100644 Binary files a/static/fonts/KaTeX_Greek-Regular.ttf and b/static/fonts/KaTeX_Greek-Regular.ttf differ diff --git a/static/fonts/KaTeX_Main-Bold.eot b/static/fonts/KaTeX_Main-Bold.eot index 0b8930dd..5df48adf 100644 Binary files a/static/fonts/KaTeX_Main-Bold.eot and b/static/fonts/KaTeX_Main-Bold.eot differ diff --git a/static/fonts/KaTeX_Main-Bold.ttf b/static/fonts/KaTeX_Main-Bold.ttf index 533d3116..63a70f89 100644 Binary files a/static/fonts/KaTeX_Main-Bold.ttf and b/static/fonts/KaTeX_Main-Bold.ttf differ diff --git a/static/fonts/KaTeX_Main-Bold.woff b/static/fonts/KaTeX_Main-Bold.woff index 3c8e911c..7c3978ea 100644 Binary files a/static/fonts/KaTeX_Main-Bold.woff and b/static/fonts/KaTeX_Main-Bold.woff differ diff --git a/static/fonts/KaTeX_Main-Italic.eot b/static/fonts/KaTeX_Main-Italic.eot index ad0cf190..a0842819 100644 Binary files a/static/fonts/KaTeX_Main-Italic.eot and b/static/fonts/KaTeX_Main-Italic.eot differ diff --git a/static/fonts/KaTeX_Main-Italic.ttf b/static/fonts/KaTeX_Main-Italic.ttf index c08c4ceb..b1c3cb69 100644 Binary files a/static/fonts/KaTeX_Main-Italic.ttf and b/static/fonts/KaTeX_Main-Italic.ttf differ diff --git a/static/fonts/KaTeX_Main-Italic.woff b/static/fonts/KaTeX_Main-Italic.woff index 3cb2035b..79fa2999 100644 Binary files a/static/fonts/KaTeX_Main-Italic.woff and b/static/fonts/KaTeX_Main-Italic.woff differ diff --git a/static/fonts/KaTeX_Main-Regular.eot b/static/fonts/KaTeX_Main-Regular.eot index 39499440..f75cfee1 100644 Binary files a/static/fonts/KaTeX_Main-Regular.eot and b/static/fonts/KaTeX_Main-Regular.eot differ diff --git a/static/fonts/KaTeX_Main-Regular.ttf b/static/fonts/KaTeX_Main-Regular.ttf index 12e6a1fb..8290833f 100644 Binary files a/static/fonts/KaTeX_Main-Regular.ttf and b/static/fonts/KaTeX_Main-Regular.ttf differ diff --git a/static/fonts/KaTeX_Main-Regular.woff b/static/fonts/KaTeX_Main-Regular.woff index b9d75cfe..41cdf0fa 100644 Binary files a/static/fonts/KaTeX_Main-Regular.woff and b/static/fonts/KaTeX_Main-Regular.woff differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.eot b/static/fonts/KaTeX_Math-BoldItalic.eot index 9e69ab00..4f590adc 100644 Binary files a/static/fonts/KaTeX_Math-BoldItalic.eot and b/static/fonts/KaTeX_Math-BoldItalic.eot differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.ttf b/static/fonts/KaTeX_Math-BoldItalic.ttf index 9920aa33..372356a7 100644 Binary files a/static/fonts/KaTeX_Math-BoldItalic.ttf and b/static/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.woff b/static/fonts/KaTeX_Math-BoldItalic.woff index 7dad0f21..a35ff1c2 100644 Binary files a/static/fonts/KaTeX_Math-BoldItalic.woff and b/static/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/static/fonts/KaTeX_Math-Italic.eot b/static/fonts/KaTeX_Math-Italic.eot index 982540b3..d1f18456 100644 Binary files a/static/fonts/KaTeX_Math-Italic.eot and b/static/fonts/KaTeX_Math-Italic.eot differ diff --git a/static/fonts/KaTeX_Math-Italic.ttf b/static/fonts/KaTeX_Math-Italic.ttf index da6b06b9..8075c059 100644 Binary files a/static/fonts/KaTeX_Math-Italic.ttf and b/static/fonts/KaTeX_Math-Italic.ttf differ diff --git a/static/fonts/KaTeX_Math-Italic.woff b/static/fonts/KaTeX_Math-Italic.woff index 0644a72e..17fa9f4e 100644 Binary files a/static/fonts/KaTeX_Math-Italic.woff and b/static/fonts/KaTeX_Math-Italic.woff differ diff --git a/static/fonts/KaTeX_Math-Regular.eot b/static/fonts/KaTeX_Math-Regular.eot index b3a78b68..4405a09f 100644 Binary files a/static/fonts/KaTeX_Math-Regular.eot and b/static/fonts/KaTeX_Math-Regular.eot differ diff --git a/static/fonts/KaTeX_Math-Regular.ttf b/static/fonts/KaTeX_Math-Regular.ttf index 41482ee7..e5aac486 100644 Binary files a/static/fonts/KaTeX_Math-Regular.ttf and b/static/fonts/KaTeX_Math-Regular.ttf differ diff --git a/static/fonts/KaTeX_Math-Regular.woff b/static/fonts/KaTeX_Math-Regular.woff index 1485bb8c..43f74486 100644 Binary files a/static/fonts/KaTeX_Math-Regular.woff and b/static/fonts/KaTeX_Math-Regular.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.eot b/static/fonts/KaTeX_SansSerif-Bold.eot index abd94356..bd582bec 100644 Binary files a/static/fonts/KaTeX_SansSerif-Bold.eot and b/static/fonts/KaTeX_SansSerif-Bold.eot differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.ttf b/static/fonts/KaTeX_SansSerif-Bold.ttf index f4137b58..4f3a8195 100644 Binary files a/static/fonts/KaTeX_SansSerif-Bold.ttf and b/static/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.woff b/static/fonts/KaTeX_SansSerif-Bold.woff index fa32d165..1ff947fb 100644 Binary files a/static/fonts/KaTeX_SansSerif-Bold.woff and b/static/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.eot b/static/fonts/KaTeX_SansSerif-Italic.eot index af1d4bc9..4f348b1b 100644 Binary files a/static/fonts/KaTeX_SansSerif-Italic.eot and b/static/fonts/KaTeX_SansSerif-Italic.eot differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.ttf b/static/fonts/KaTeX_SansSerif-Italic.ttf index 25562cf1..2d970ae9 100644 Binary files a/static/fonts/KaTeX_SansSerif-Italic.ttf and b/static/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.woff b/static/fonts/KaTeX_SansSerif-Italic.woff index 8a75410c..d17dbd7a 100644 Binary files a/static/fonts/KaTeX_SansSerif-Italic.woff and b/static/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.eot b/static/fonts/KaTeX_SansSerif-Regular.eot index 345f7ac0..834ab908 100644 Binary files a/static/fonts/KaTeX_SansSerif-Regular.eot and b/static/fonts/KaTeX_SansSerif-Regular.eot differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.ttf b/static/fonts/KaTeX_SansSerif-Regular.ttf index 8da4b239..4683e470 100644 Binary files a/static/fonts/KaTeX_SansSerif-Regular.ttf and b/static/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.woff b/static/fonts/KaTeX_SansSerif-Regular.woff index 751e0322..b5dc3a0c 100644 Binary files a/static/fonts/KaTeX_SansSerif-Regular.woff and b/static/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/static/fonts/KaTeX_Script-Regular.eot b/static/fonts/KaTeX_Script-Regular.eot index 37113991..9c3f528f 100644 Binary files a/static/fonts/KaTeX_Script-Regular.eot and b/static/fonts/KaTeX_Script-Regular.eot differ diff --git a/static/fonts/KaTeX_Script-Regular.ttf b/static/fonts/KaTeX_Script-Regular.ttf index d47d5010..1a8ece89 100644 Binary files a/static/fonts/KaTeX_Script-Regular.ttf and b/static/fonts/KaTeX_Script-Regular.ttf differ diff --git a/static/fonts/KaTeX_Script-Regular.woff b/static/fonts/KaTeX_Script-Regular.woff index 62e171bd..34a045e7 100644 Binary files a/static/fonts/KaTeX_Script-Regular.woff and b/static/fonts/KaTeX_Script-Regular.woff differ diff --git a/static/fonts/KaTeX_Size1-Regular.eot b/static/fonts/KaTeX_Size1-Regular.eot index b5aa6fb4..13bd0463 100644 Binary files a/static/fonts/KaTeX_Size1-Regular.eot and b/static/fonts/KaTeX_Size1-Regular.eot differ diff --git a/static/fonts/KaTeX_Size1-Regular.ttf b/static/fonts/KaTeX_Size1-Regular.ttf index 3f2be9ff..a68c77b7 100644 Binary files a/static/fonts/KaTeX_Size1-Regular.ttf and b/static/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size1-Regular.woff b/static/fonts/KaTeX_Size1-Regular.woff index e0e17c49..639cef95 100644 Binary files a/static/fonts/KaTeX_Size1-Regular.woff and b/static/fonts/KaTeX_Size1-Regular.woff differ diff --git a/static/fonts/KaTeX_Size2-Regular.eot b/static/fonts/KaTeX_Size2-Regular.eot index 71b3224d..4bb796fb 100644 Binary files a/static/fonts/KaTeX_Size2-Regular.eot and b/static/fonts/KaTeX_Size2-Regular.eot differ diff --git a/static/fonts/KaTeX_Size2-Regular.ttf b/static/fonts/KaTeX_Size2-Regular.ttf index 8d830538..ca8b985b 100644 Binary files a/static/fonts/KaTeX_Size2-Regular.ttf and b/static/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size2-Regular.woff b/static/fonts/KaTeX_Size2-Regular.woff index a0089a17..1dafbe07 100644 Binary files a/static/fonts/KaTeX_Size2-Regular.woff and b/static/fonts/KaTeX_Size2-Regular.woff differ diff --git a/static/fonts/KaTeX_Size3-Regular.eot b/static/fonts/KaTeX_Size3-Regular.eot index e77f03fe..b14328f4 100644 Binary files a/static/fonts/KaTeX_Size3-Regular.eot and b/static/fonts/KaTeX_Size3-Regular.eot differ diff --git a/static/fonts/KaTeX_Size3-Regular.ttf b/static/fonts/KaTeX_Size3-Regular.ttf index 2db96643..5d5592a1 100644 Binary files a/static/fonts/KaTeX_Size3-Regular.ttf and b/static/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size3-Regular.woff b/static/fonts/KaTeX_Size3-Regular.woff index f72555d2..70a3b709 100644 Binary files a/static/fonts/KaTeX_Size3-Regular.woff and b/static/fonts/KaTeX_Size3-Regular.woff differ diff --git a/static/fonts/KaTeX_Size4-Regular.eot b/static/fonts/KaTeX_Size4-Regular.eot index 136a26fc..20673911 100644 Binary files a/static/fonts/KaTeX_Size4-Regular.eot and b/static/fonts/KaTeX_Size4-Regular.eot differ diff --git a/static/fonts/KaTeX_Size4-Regular.ttf b/static/fonts/KaTeX_Size4-Regular.ttf index 6dfff4e9..f20405e2 100644 Binary files a/static/fonts/KaTeX_Size4-Regular.ttf and b/static/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size4-Regular.woff b/static/fonts/KaTeX_Size4-Regular.woff index 8ffdf40f..960be92b 100644 Binary files a/static/fonts/KaTeX_Size4-Regular.woff and b/static/fonts/KaTeX_Size4-Regular.woff differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.eot b/static/fonts/KaTeX_Typewriter-Regular.eot index 4c8a1a3b..ab11ea70 100644 Binary files a/static/fonts/KaTeX_Typewriter-Regular.eot and b/static/fonts/KaTeX_Typewriter-Regular.eot differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.ttf b/static/fonts/KaTeX_Typewriter-Regular.ttf index 27966505..f84d9064 100644 Binary files a/static/fonts/KaTeX_Typewriter-Regular.ttf and b/static/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.woff b/static/fonts/KaTeX_Typewriter-Regular.woff index 54d7c5fc..a86885c4 100644 Binary files a/static/fonts/KaTeX_Typewriter-Regular.woff and b/static/fonts/KaTeX_Typewriter-Regular.woff differ