Woff2

From annawiki
Revision as of 2018-08-25T13:20:47 by Tobiasco (talk | contribs)
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

apt-get install fonts-noto

apt-get install fonts-noto
Reading package lists... 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
Get:1 http://example.org/ftp.ubuntu.com/ubuntu bionic/universe amd64 fonts-noto-hinted all 20171026-2 [6,653 kB]
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) ...

Mime-type

https://www.iana.org/assignments/media-types/media-types.xhtml#font

font/woff2