adobe-fonts / source-han-code-jp

Source Han Code JP | 源ノ角ゴシック Code
https://ccjktype.fonts.adobe.com/2015/06/source-han-code-jp.html
SIL Open Font License 1.1
1.66k stars 55 forks source link
cff font japanese monospace-font opentype otc otf source-han

English / 日本語

2020-11-25 Release Notes

Removed SVG table to avoid problems with syntax highlighting as reported in Issue #17.

2018-04-17 Release Notes

Source Han Code JP Version 2.010 is released. This version supports style-linking in apps that include 'B' (Bold) and 'I' (Italic) buttons in their font menu. The sorting of the font names in some apps is also improved.

Changes:

Source Han Code JP

Source Han Code JP is a derivative of Source Han Sans that replaces its proportional Latin glyphs with fixed-width 667-unit glyphs from Source Code Pro. The Latin glyphs are scaled to match the glyphs for Japanese kana and kanji, and their widths are adjusted to be exactly 667 units (two-thirds of an EM). Source Han Code JP is intended to be used as a UI font for mixed Latin and Japanese text on displays, for programming, editing HTML/CSS, viewing text or inputing to the command line in a terminal app, and so on.

Source Han Code JP is based on the Japanese subset of Source Han Sans, Source Han Sans JP, whose glyph set supports only Japanese.

alt text

alt text

alt text

alt text

Download the fonts

Changes from the original Source Han Sans JP

Proportional Latin glyphs that were replaced with fixed-width 667-unit versions:

Italic glyphs that were added to version 2.0 :

Full-width emoji glyphs that were added to version 2.0 :

Proportional glyphs that are removed from the original Source Han Sans JP :

Source Han Code JP does not support any GPOS features.

Building the fonts

Requirements

To build the binary font files from source, you need to have installed the Adobe Font Development Kit for OpenType (AFDKO). The AFDKO tools are widely used for font development today, and are part of most font editor applications.

Building all fonts

For convenience, a shell script named commands.sh is provided in the root directory. To run addSVGtable.py which allows to add SVG files into a font will require fonttools version 2.5 and later :

$ ./commands.sh

You can use commands_superotc.sh to make a super otc that will be bound all of fonts in one single file :

$ ./commands_subroutinize_otc.sh

Installation notes

After installing in OS X, if you cannot find the fonts in the font menu of an app, or if the fonts cannot be selected in an app, please try the following steps to reset the font cache:

  1. Copy fonts (OTFs or OTC) to the /Library/Fonts/ or ~/Library/Fonts/ directory.
  2. Run the following command line in the Terminal app:
    $ sudo atsutil databases -remove
  3. Logout from or restart OS X.

The original open source fonts from which Source Han Code JP was derived

2018-04-02 Note

*SVG font causes an error when saving an Adobe Illustrator file was fixed in version 22.1.

2017-11-22 Note

2017-11-4 Note

We are aware that Adobe Illustrator CC fails to save a document that uses Source Han Code JP that results in an "An unknown error has occurred." dialog appearing. This issue has been reported to the Illustrator team. This issue seems to affect CID-keyed OpenType/CFF fonts that include an 'SVG ' table, such as Source Han Code JP. An interim solution is to simply uncheck the "Create PDF Compatible File" option in the Save dialog's options. InDesign CC has a similar issue in its PDF export option, and unfortunately, we are not aware of a similar work-around.

Please visit OpenType SVG Fonts in Creative Cloud Apps more details.

Getting Involved

Send suggestions for changes to the Source Han Code project maintainer, Masataka Hattori, for consideration.