Skip to content

Commit a005a53

Browse files
committed
Change the way importing fonts and update README.md
1 parent a7f860d commit a005a53

File tree

7 files changed

+46
-11
lines changed

7 files changed

+46
-11
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,39 @@ _screenshots:_
1616

1717
![](images/catfish2.png)
1818

19-
![](images/catfish3.png)
19+
![](images/catfish3.png)
20+
21+
------
22+
23+
**Update** 2017.08.18
24+
25+
I selected Simplified Chinese glyphs as default, and used Language-specific OTFs. It can be used directly by Simplified Chinese users.
26+
27+
If you want use Traditional Chinese, Japanese or Korean. There are two way to change to another language.
28+
29+
1. Downloading latest release from [Source Han Sans](https://github.com/adobe-fonts/source-han-sans/tree/release) and [Source Han Serif](https://github.com/adobe-fonts/source-han-serif/tree/release) . And then change `font-face`and`font-family`according to the fonts you downloading.
30+
31+
e.g
32+
33+
```css
34+
@font-face
35+
font-family Source Han Sans SC
36+
font-weight normal
37+
src local('Source Han Sans SC Regular'),url(catfish/SourceHanSansSC-Regular.otf)
38+
39+
font-sans = Source Han Sans SC, sans-serif
40+
```
41+
42+
43+
44+
2. Installing Super OTC. (It is included in catfish folder or you can also choose to download from official website.)
45+
46+
> This deployment format requires macOS (OS X) Version 10.8 (aka *Mountain Lion*) or later, iOS 7 or later, Windows 10 Version 1703 (aka *Creators Update*) or later, a flavor of Linux that uses *fontconfig* and FreeType Version 2.5.0.1 or greater, or Adobe CS6 apps or later.
47+
48+
There are other deployments available in Github.
49+
50+
You can remove`font-face` of Source Han Sans and Source Han Serif and just modify font-family accordingly.
51+
52+
53+
Sorry for the inconvenience.
54+

catfish.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
@font-face {
2-
font-family: Source Han Sans;
2+
font-family: Source Han Sans SC;
33
font-weight: normal;
4-
src: local('Source Han Sans Regular'), url("catfish/SourceHanSans-Regular.ttc");
4+
src: local('Source Han Sans SC Regular'), url("catfish/SourceHanSansSC-Regular.otf");
55
}
66
@font-face {
77
font-family: Source Han Sans;
88
font-weight: bold;
9-
src: local('Source Han Sans Bold'), url("catfish/SourceHanSans-Bold.ttc");
9+
src: local('Source Han Sans SC Bold'), url("catfish/SourceHanSansSC-Bold.otf");
1010
}
1111
@font-face {
1212
font-family: Source Han Serif;
1313
font-weight: normal;
14-
src: local('Source Han Serif Regular'), url("catfish/SourceHanSerif-Regular.ttc");
14+
src: local('Source Han Serif SC Regular'), url("catfish/SourceHanSerifSC-Regular.otf");
1515
}
1616
@font-face {
1717
font-family: Source Han Serif;
1818
font-weight: bold;
19-
src: local('Source Han Serif Bold'), url("catfish/SourceHanSerif-Bold.ttc");
19+
src: local('Source Han Serif SC Bold'), url("catfish/SourceHanSerifSC-Bold.otf");
2020
}
2121
@font-face {
2222
font-family: mononoki;

catfish.styl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
//custom fonts
22

33
@font-face
4-
font-family Source Han Sans
4+
font-family Source Han Sans SC
55
font-weight normal
6-
src local('Source Han Sans Regular'),url(catfish/SourceHanSans-Regular.ttc)
6+
src local('Source Han Sans SC Regular'),url(catfish/SourceHanSansSC-Regular.otf)
77

88
@font-face
99
font-family Source Han Sans
1010
font-weight bold
11-
src local('Source Han Sans Bold'),url(catfish/SourceHanSans-Bold.ttc)
11+
src local('Source Han Sans SC Bold'),url(catfish/SourceHanSansSC-Bold.otf)
1212

1313
@font-face
1414
font-family Source Han Serif
1515
font-weight normal
16-
src local('Source Han Serif Regular'),url(catfish/SourceHanSerif-Regular.ttc)
16+
src local('Source Han Serif SC Regular'),url(catfish/SourceHanSerifSC-Regular.otf)
1717

1818
@font-face
1919
font-family Source Han Serif
2020
font-weight bold
21-
src local('Source Han Serif Bold'),url(catfish/SourceHanSerif-Bold.ttc)
21+
src local('Source Han Serif SC Bold'),url(catfish/SourceHanSerifSC-Bold.otf)
2222

2323
@font-face
2424
font-family mononoki

catfish/SourceHanSansSC-Bold.otf

16.2 MB
Binary file not shown.

catfish/SourceHanSansSC-Regular.otf

15.7 MB
Binary file not shown.

catfish/SourceHanSerifSC-Bold.otf

23.5 MB
Binary file not shown.

catfish/SourceHanSerifSC-Regular.otf

22.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)