Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

SourceHanSansUI

Formerly SHSDeskInterface.

##// Disclaimer This modified set of Source Han Sans is made for OS X & iOS's GUI font purposes only.

These fonts should be installed via sudo privileges to either the system font folder /System/Library/Fonts/ or library font folder /Library/Fonts/:

chown root:wheel "/Library/Fonts/FONTFILENAME.ttc"
chmod 644 "/Library/Fonts/FONTFILENAME.ttc"

These fonts' post script names are hidden under OS X; Only CTPresetFallbacks.plist and DefaultFontFallbacks.plist modified via those scripts provided from https://github.com/othercat/CJKFontScript could let them work as GUI fonts in OS X Yosemite, with current STHeiti's removal recommended.

P.S.: Factorial font Plist files couldn't work with this font set.

You may want to install official SHS build again for any other usages you want:
https://github.com/adobe-fonts/source-han-sans/tree/release

##// Installation

You should visit this website: https://github.com/othercat/CJKFontScript , download install_SHS-UI.sh, and run sudo bash install_SHS-UI.sh in Terminal. Please close all other applications and finish all of your other pending Terminal process before running this installer script (there will be an automatic reboot with prompt).

##// Parameters Modified from SHS (excl. PostScript name)

We added and modified some parameters among all of those "features.otc.???" files.
(We only talk about Langage-Specific Releases, not Region-Specific Releases because nobody want to see glyph-blank-box while using these fonts.)

P.S.: Special thanks to Kobayashi Ken (a.k.a. Ken Lunde, the programmer of Source Han Sans) for his suggestion on pointing out which parameter should be modified and his tips on using AFDKO, otherwise I couldn't get this achieved. But we have to clear the LineGap and add its reasonable value up to the Ascender in order to deal with the following problem:

OS X Yosemite has serious problem regarding its UILabel elements: they omit the lineGap data, cause display malfunction among multi-line filenames in Finder if the display font has lineGap data.

Step 1: Add following info before VHEA table:

table hhea {
  Ascender 1000;
  Descender -234;
  LineGap 0;
} hhea;

Step 2: Find

table OS/2 {
  TypoAscender 880;
  TypoDescender -120;
  TypoLineGap 500;

Change into:

table OS/2 {
  TypoAscender 1000;
  TypoDescender -234;
  TypoLineGap 0;

Those steps above could let the SHS display correctly as System's CJK GUI font while you are doing CJK filename's renaming:

image

And it shows the better display lineHeight than STHeiti in iMessages:

image

And it shows multi-line filename well in Finder: image

More screenshots (for both Traditional and Simplified Yosemite GUI): http://1drv.ms/12r4uoc

That's all.

[EOF]

About

This modified version of Source Han Sans should only be used for OS X & iOS's GUI font purposes. Other purposes may conflict to SHS's Apache 2.0 License.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors