Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Created July 16, 2018 07:18
Show Gist options
  • Save jj1bdx/bed4d90ac61a8e289ff8a50ce4d8ffa3 to your computer and use it in GitHub Desktop.
Save jj1bdx/bed4d90ac61a8e289ff8a50ce4d8ffa3 to your computer and use it in GitHub Desktop.
Install Source Han Sans/Source Han Serif Japanese fonts for LaTeX

Install Source Han Sans/Source Han Serif fonts for LaTeX

Get the fonts

Install Source Han Sans/Serif from:

Get the CMAP files as:

curl -O https://raw.githubusercontent.com/adobe-fonts/source-han-sans/release/Resources/UniSourceHanSansJP-UTF16-H
curl -O https://raw.githubusercontent.com/adobe-fonts/source-han-serif/release/Resources/UniSourceHanSerifJP-UTF16-H

Install the fonts

  • Set the destination path ${LOCALPATH} (on MacTeX: ~/Library/texmf)
  • Install following files:
    • Source Han Sans font files: ${LOCALPATH}/fonts/opentype/adobe/sourcehansansjp/
    • Source Han Serif font files: ${LOCALPATH}/fonts/opentype/adobe/sourcehanserifjp/
    • CMap files: ${LOCALPATH}//fonts/cmap/sourcehanjp/

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment