MathHubInfo / Legacy-localmh

DEPRECATED - A cross-repository administration tool for the local authoring in MathHub.info
1 stars 0 forks source link

Install new fonts inside lmh docker #217

Closed jinbozz closed 9 years ago

jinbozz commented 9 years ago

This is for fixing the problem with Chinese Module. Testing Environment: Ubuntu 14.04 LTS 64-bits

Here is the full step:

  1. Download the two fonts here: https://github.com/La-Stravaganza/sTeX/tree/265ec5c6418d79e514dd613fa0daa00cf2e49535/fonts Both fonts are distributed with GPLv2 license, so we can use them.
  2. Start lmh docker:

    lmh core start
  3. Put them in somewhere that we can find them inside docker, e.g.:

    ~/localmh/MathHub
  4. Check the current fonts:

    fc-list
  5. make directories for fonts:

    cd /usr/share/fonts/
    mkdir opentype
    cd opentype
    mkdir Fandol
    cd /usr/share/fonts/truetype/
    mkdir cwTeX
  6. copy fonts to directories: (Suppose you store them under ~/localmh/MathHub)

    cd ~/localmh/MathHub
    cp FandolFang-Regular.otf /usr/share/fonts/opentype/Fandol/
    cp cwTeXQKai-Medium.ttf /usr/share/fonts/truetype/cwTeX/
  7. cache fonts and check:

    fc-cache
    fc-list

    Now you should see this two new fonts are in the list

That's it!

Screenshots for generated pdf:

selection_009

selection_010

jinbozz commented 9 years ago

@kohlhase Plus, I need push rights to smglom to fix pre.zhs.tex and pre.zht.tex, I've already made the changes on my own fork: https://gl.mathhub.info/jinzhang/sets/commit/ba6ef4ea8f849675565ad54444f21998c3c66e60

kohlhase commented 9 years ago

I gave you push rights.

jinbozz commented 9 years ago

Done.

tkw1536 commented 9 years ago

Fixed.