|
|
(3 intermediate revisions by the same user not shown) |
Line 8: |
Line 8: |
| woff2_compress NotoSans-BoldItalic.ttf | | woff2_compress NotoSans-BoldItalic.ttf |
|
| |
|
| ==apt-get install fonts-noto==
| | mkdir ../woff2 |
| apt-get install fonts-noto | | mv *.woff2 ../woff2 |
|
| |
|
| Reading package lists... Done | | for f in *.ttf ; do woff2_compress $f ; done |
| Building dependency tree
| |
| Reading state information... Done
| |
| The following additional packages will be installed:
| |
| fonts-noto-hinted
| |
| Recommended packages:
| |
| fonts-noto-unhinted fonts-noto-mono fonts-noto-cjk
| |
| The following NEW packages will be installed:
| |
| fonts-noto fonts-noto-hinted
| |
| 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
| |
| Need to get 6,657 kB of archives.
| |
| After this operation, 26.7 MB of additional disk space will be used.
| |
| Do you want to continue? [Y/n]
| |
|
| |
|
| y
| | ==Mime-type== |
| | | https://www.iana.org/assignments/media-types/media-types.xhtml#font |
| Get:1 http://example.org/ftp.ubuntu.com/ubuntu bionic/universe amd64 fonts-noto-hinted all 20171026-2 [6,653 kB]
| | font/woff2 |
| Get:2 http://example.org/ftp.ubuntu.com/ubuntu bionic/universe amd64 fonts-noto all 20171026-2 [4,136 B]
| |
| Fetched 6,657 kB in 0s (18.8 MB/s)
| |
| Selecting previously unselected package fonts-noto-hinted.
| |
| (Reading database ... 28522 files and directories currently installed.)
| |
| Preparing to unpack .../fonts-noto-hinted_20171026-2_all.deb ...
| |
| Unpacking fonts-noto-hinted (20171026-2) ...
| |
| Selecting previously unselected package fonts-noto. | |
| Preparing to unpack .../fonts-noto_20171026-2_all.deb ...
| |
| Unpacking fonts-noto (20171026-2) ...
| |
| Setting up fonts-noto-hinted (20171026-2) ...
| |
| Processing triggers for fontconfig (2.12.6-0ubuntu2) ...
| |
| Setting up fonts-noto (20171026-2) ...
| |
https://gist.github.com/moltomedia/07cd1ad01c617a8924db
https://github.com/google/woff2
https://caniuse.com/#feat=woff2
woff2_compress NotoSans-Bold.ttf
woff2_compress NotoSans-Regular.ttf
woff2_compress NotoSans-Italic.ttf
woff2_compress NotoSans-BoldItalic.ttf
mkdir ../woff2
mv *.woff2 ../woff2
for f in *.ttf ; do woff2_compress $f ; done
Mime-type
https://www.iana.org/assignments/media-types/media-types.xhtml#font
font/woff2