$ cd HackGen_NF_v2.10.0
$ ls *.ttf | xargs -i sh -c 'sfnt2woff {} && woff2_compress {}'
Processing HackGen35ConsoleNF-Bold.ttf => HackGen35ConsoleNF-Bold.woff2
Compressed 10875327 to 4569738.
Processing HackGen35ConsoleNF-Regular.ttf => HackGen35ConsoleNF-Regular.woff2
Compressed 10427620 to 4393224.
Processing HackGenConsoleNF-Bold.ttf => HackGenConsoleNF-Bold.woff2
Compressed 10876056 to 4571220.
Processing HackGenConsoleNF-Regular.ttf => HackGenConsoleNF-Regular.woff2
Compressed 10426503 to 4395310.
$ ll
合計 94328
-rw-r--r-- 1 tomoyan tomoyan 13462380 12月 29 16:04 HackGen35ConsoleNF-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 6531888 4月 12 10:54 HackGen35ConsoleNF-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 4569844 4月 12 10:55 HackGen35ConsoleNF-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 12922844 12月 29 16:04 HackGen35ConsoleNF-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 6398440 4月 12 10:55 HackGen35ConsoleNF-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 4393332 4月 12 10:56 HackGen35ConsoleNF-Regular.woff2
-rw-r--r-- 1 tomoyan tomoyan 13464288 12月 29 16:04 HackGenConsoleNF-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 6534948 4月 12 10:56 HackGenConsoleNF-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 4571328 4月 12 10:57 HackGenConsoleNF-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 12922800 12月 29 16:04 HackGenConsoleNF-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 6401656 4月 12 10:57 HackGenConsoleNF-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 4395416 4月 12 10:58 HackGenConsoleNF-Regular.woff2
$ cd ../HackGen_v2.10.0
$ ls *.ttf | xargs -i sh -c 'sfnt2woff {} && woff2_compress {}'
Processing HackGen-Bold.ttf => HackGen-Bold.woff2
Compressed 9098739 to 3604203.
Processing HackGen-Regular.ttf => HackGen-Regular.woff2
Compressed 8646368 to 3431454.
Processing HackGen35-Bold.ttf => HackGen35-Bold.woff2
Compressed 9098354 to 3603655.
Processing HackGen35-Regular.ttf => HackGen35-Regular.woff2
Compressed 8645686 to 3430103.
Processing HackGen35Console-Bold.ttf => HackGen35Console-Bold.woff2
Compressed 9118148 to 3611814.
Processing HackGen35Console-Regular.ttf => HackGen35Console-Regular.woff2
Compressed 8670425 to 3441278.
Processing HackGenConsole-Bold.ttf => HackGenConsole-Bold.woff2
Compressed 9118925 to 3614983.
Processing HackGenConsole-Regular.ttf => HackGenConsole-Regular.woff2
Compressed 8669356 to 3442626.
$ ll
合計 154060
-rw-r--r-- 1 tomoyan tomoyan 11239136 12月 29 16:04 HackGen-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 5282724 4月 12 10:59 HackGen-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 3604308 4月 12 11:00 HackGen-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 10694536 12月 29 16:04 HackGen-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 5149508 4月 12 11:00 HackGen-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 3431560 4月 12 11:00 HackGen-Regular.woff2
-rw-r--r-- 1 tomoyan tomoyan 11238016 12月 29 16:04 HackGen35-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 5281588 4月 12 11:01 HackGen35-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 3603760 4月 12 11:01 HackGen35-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 10693068 12月 29 16:04 HackGen35-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 5147932 4月 12 11:01 HackGen35-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 3430208 4月 12 11:02 HackGen35-Regular.woff2
-rw-r--r-- 1 tomoyan tomoyan 11249376 12月 29 16:04 HackGen35Console-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 5288700 4月 12 11:02 HackGen35Console-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 3611920 4月 12 11:02 HackGen35Console-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 10709828 12月 29 16:04 HackGen35Console-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 5155420 4月 12 11:02 HackGen35Console-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 3441384 4月 12 11:03 HackGen35Console-Regular.woff2
-rw-r--r-- 1 tomoyan tomoyan 11251244 12月 29 16:04 HackGenConsole-Bold.ttf
-rw-r--r-- 1 tomoyan tomoyan 5291272 4月 12 11:03 HackGenConsole-Bold.woff
-rw-r--r-- 1 tomoyan tomoyan 3615088 4月 12 11:04 HackGenConsole-Bold.woff2
-rw-r--r-- 1 tomoyan tomoyan 10709744 12月 29 16:04 HackGenConsole-Regular.ttf
-rw-r--r-- 1 tomoyan tomoyan 5158008 4月 12 11:04 HackGenConsole-Regular.woff
-rw-r--r-- 1 tomoyan tomoyan 3442732 4月 12 11:04 HackGenConsole-Regular.woff2
===== WOFFConverter (Windows) =====
{{:web:woff_converter_001.png?80|WOFFConverter Icon}}\\
[[https://opentype.jp/woffconv.htm|WOFFコンバータ]] (武蔵システム)\\
{{:web:woff_converter_002.png?400|WOFFConverter 002}}\\
===== 参考文献 =====
[[https://fonts.google.com|Google Fonts]]\\
[[https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/webfont-optimization?hl=ja|ウェブフォントの最適化 | Web Fundamentals | Google Developers]]\\
[[https://01earth.jp/web-create/coding/web-font/|自社サーバーにフォントをアップロードして、Webフォントを使用する方法|株式会社ゼロワンアース]]\\
[[https://en.wikipedia.org/wiki/Web_Open_Font_Format|Web Open Font Format - Wikipedia]]\\
[[https://developer.mozilla.org/ja/docs/Web/Guide/WOFF|WOFF (Web Open Font Format) - 開発者ガイド | MDN]]\\
[[https://www.willgate.co.jp/promonista/page-speed/|ページ表示速度の計測・改善方法|Googleが重視する理由と対策 | ウィルゲート]]\\
[[https://christina04.hatenablog.com/entry/2017/04/12/002333|Webフォントのファイルサイズを小さくする - Carpe Diem]]\\
==== 付録 ====
[[tw>tomoyan596sp/status/1567951237596983296|Linuxでパッケージ化されているので、sfnt2woffとwoff2_compressが含まれるパッケージはこれで良さそうですけど試します🤔 $ sudo dnf install woff woff2-tools]]\\