web:web_font

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
web:web_font [2022/09/23 03:45] – [参考文献] ともやんweb:web_font [2023/09/23 11:05] (現在) – [TrueType(.ttf) から Web Open Font Format(.woff と .woff2) へ変換🤤] ともやん
行 4: 行 4:
 ===== Web フォントの形式 ===== ===== Web フォントの形式 =====
 ^  拡張子  ^  形式  ^  説明  ^ ^  拡張子  ^  形式  ^  説明  ^
-|  .woff2  | [[https://www.w3.org/TR/WOFF2/|Web Open Font Format 2.0]]  | [[https://ja.wikipedia.org/wiki/Web_Open_Font_Format|Web Open Font Format (WOFF)]] 2.0 は、Google によるリファレンス実装と共に公開された。フォントの圧縮に [[https://ja.wikipedia.org/wiki/Brotli|Brotli]] を使用するように改善された。 +|  .woff2  | [[https://www.w3.org/TR/WOFF2/|Web Open Font Format 2.0]]  | [[wwjp>Web_Open_Font_Format|Web Open Font Format (WOFF)]] 2.0 は、Google によるリファレンス実装と共に公開された。フォントの圧縮に [[wwjp>Brotli|Brotli]] を使用するように改善された。 
-|  .woff  | [[https://www.w3.org/TR/WOFF/|Web Open Font Format 1.0]]  | [[https://ja.wikipedia.org/wiki/Web_Open_Font_Format|Web Open Font Format (WOFF)]] は、ウェブページで使用するためのフォント形式である。WOFF は OpenType 又は TrueType 形式のフォントを圧縮し、XMLによるメタデータを追加したものとなっている。 +|  .woff  | [[https://www.w3.org/TR/WOFF/|Web Open Font Format 1.0]]  | [[wwjp>Web_Open_Font_Format|Web Open Font Format (WOFF)]] は、ウェブページで使用するためのフォント形式である。WOFF は OpenType 又は TrueType 形式のフォントを圧縮し、XMLによるメタデータを追加したものとなっている。 
-|  .ttf  | [[https://ja.wikipedia.org/wiki/TrueType|TrueType - Wikipedia]]  | TrueType (トゥルータイプ) はデジタルフォントの規格である。Windows や macOS、Linux で標準的に利用されている。 +|  .ttf  | [[wwjp>TrueType|TrueType]]  | TrueType (トゥルータイプ) はデジタルフォントの規格である。Windows や macOS、Linux で標準的に利用されている。 
-|  .eof  | [[https://en.wikipedia.org/wiki/Embedded_OpenType|Embedded OpenType]]  | Web ページの埋め込みフォントとして使用するために Microsoft が設計したコンパクトな OpenType フォントである。MS IE でのみサポートされる。  |+|  .eof  | [[wwjp>Embedded_OpenType|Embedded OpenType]]  | Web ページの埋め込みフォントとして使用するために Microsoft が設計したコンパクトな OpenType フォントである。MS IE でのみサポートされる。  |
  
   * EOT 形式と TTF 形式はデフォルトで圧縮されていない。\\ これらの形式を提供する場合は GZIP 圧縮を適用するように Web サーバーを設定する必要がある。   * EOT 形式と TTF 形式はデフォルトで圧縮されていない。\\ これらの形式を提供する場合は GZIP 圧縮を適用するように Web サーバーを設定する必要がある。
行 13: 行 13:
   * WOFF2 では独自の前処理アルゴリズムと圧縮アルゴリズムが使用されており、WOFF 形式よりも約 30% ファイルサイズが削減されている。   * WOFF2 では独自の前処理アルゴリズムと圧縮アルゴリズムが使用されており、WOFF 形式よりも約 30% ファイルサイズが削減されている。
  
-===== TrueType(.ttf) から Web Open Font Format(.woff, .woff2) への変換 (Linux) =====+===== TrueType(.ttf) から Web Open Font Format(.woff, .woff2) への変換 (Linux)🤤 =====
 Linux では sfnt2woff (ttf => woff) と woff2_compress (ttf => woff2) コマンドが必要...🤔\\ Linux では sfnt2woff (ttf => woff) と woff2_compress (ttf => woff2) コマンドが必要...🤔\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ dnf provides sfnt2woff woff2_compress+<b class=GRN>$</b> <b class=HIY>dnf</b> provides sfnt2woff woff2_compress
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-メタデータの期限切れの最終確認: 5 days, 16:01:19 時間前の 202209月03日 115419秒 に実施しました。 +メタデータの期限切れの最終確認: 0:00:07 時間前の 2023年03月13日 160049秒 に実施しました。 
-woff-0.20091126-25.fc36.x86_64 : Encoding and Decoding for Web Open Font Format(Woff)+woff-0.20091126-26.fc37.x86_64 : Encoding and Decoding for Web Open Font Format(Woff)
 Repo        : fedora Repo        : fedora
 一致: 一致:
 ファイル名    : /usr/bin/<b class=MAG>sfnt2woff</b> ファイル名    : /usr/bin/<b class=MAG>sfnt2woff</b>
  
-woff2-tools-1.0.2-14.fc36.x86_64 : Web Open Font Format 2.0 tools+woff2-tools-1.0.2-15.fc37.x86_64 : Web Open Font Format 2.0 tools
 Repo        : fedora Repo        : fedora
 一致: 一致:
行 36: 行 36:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf install woff woff2-tools+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf install woff woff2-tools
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result_long><html><pre> <WRAP color_result_long><html><pre>
-メタデータの期限切れの最終確認: 1:07:15 時間前の 20220909日 025004秒 に実施しました。+メタデータの期限切れの最終確認: 2:29:35 時間前の 20230313日 133515秒 に実施しました。
 依存関係が解決しました。 依存関係が解決しました。
 ============================================================================================================== ==============================================================================================================
- パッケージ                アーキテクチャー     バージョン                         リポジトリー         サイズ+ パッケージ                アーキテクチャー     バージョン                        リポジトリー          サイズ
 ============================================================================================================== ==============================================================================================================
 インストール: インストール:
- <b class=GRN>woff</b>                      x86_64               0.20091126-25.fc36                 fedora                22 + <b class=GRN>woff                     </b> x86_64               0.20091126-35.fc37                updates                32 
- <b class=GRN>woff2-tools</b>               x86_64               1.0.2-14.fc36                      fedora                24 k+ <b class=GRN>woff2-tools              </b> x86_64               1.0.2-15.fc37                     fedora                 24 k
  
 トランザクションの概要 トランザクションの概要
行 52: 行 52:
 インストール  2 パッケージ インストール  2 パッケージ
  
-ダウンロードサイズの合計: 45 +ダウンロードサイズの合計: 56 
-インストール後のサイズ: 88 k+インストール後のサイズ: 121 k
 これでよろしいですか? [y/N]: y これでよろしいですか? [y/N]: y
 パッケージのダウンロード: パッケージのダウンロード:
-(1/2): woff-0.20091126-25.fc36.x86_64.rpm                                     103 kB/s |  22 kB     00:00     +(1/2): woff-0.20091126-35.fc37.x86_64.rpm                                     158 kB/s |  32 kB     00:00     
-(2/2): woff2-tools-1.0.2-14.fc36.x86_64.rpm                                    99 kB/s |  24 kB     00:00    +(2/2): woff2-tools-1.0.2-15.fc37.x86_64.rpm                                    91 kB/s |  24 kB     00:00    
 -------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
-合計                                                                           45 kB/s |  45 kB     00:01     +合計                                                                           26 kB/s |  56 kB     00:02     
 トランザクションの確認を実行中 トランザクションの確認を実行中
 トランザクションの確認に成功しました。 トランザクションの確認に成功しました。
行 66: 行 66:
 トランザクションを実行中 トランザクションを実行中
   準備             :                                                                                      1/1    準備             :                                                                                      1/1 
-  インストール中   : woff2-tools-1.0.2-14.fc36.x86_64                                                     1/2  +  インストール中   : woff-0.20091126-35.fc37.x86_64                                                       1/2  
-  インストール中   : woff-0.20091126-25.fc36.x86_64                                                       2/2  +  インストール中   : woff2-tools-1.0.2-15.fc37.x86_64                                                     2/2  
-  scriptletの実行中: woff-0.20091126-25.fc36.x86_64                                                       2/2  +  scriptletの実行中: woff2-tools-1.0.2-15.fc37.x86_64                                                     2/2  
-  検証             : woff-0.20091126-25.fc36.x86_64                                                       1/2  +  検証             : woff2-tools-1.0.2-15.fc37.x86_64                                                     1/2  
-  検証             : woff2-tools-1.0.2-14.fc36.x86_64                                                     2/2 +  検証             : woff-0.20091126-35.fc37.x86_64                                                       2/2 
  
 インストール済み: インストール済み:
-  woff-0.20091126-25.fc36.x86_64                       woff2-tools-1.0.2-14.fc36.x86_64                      +  woff-0.20091126-35.fc37.x86_64                       woff2-tools-1.0.2-15.fc37.x86_64                      
  
 完了しました! 完了しました!
行 79: 行 79:
 </WRAP> </WRAP>
  
-==== オープンなライセンスの HackGen さんを Web フォントに変換する ==== +==== オープンなライセンスの 白源/HackGen さんを Web フォントに変換する🤤 ==== 
-[[https://github.com/yuru7/HackGen|HackGen]] さんをダウンロードする🤤\\+[[git>yuru7/HackGen|白源/HackGen]] さんをダウンロードする🤔\\ 
 +[[git>yuru7/HackGen/blob/master/LICENSE|Copyright (c) 2019, Yuko OTAWARA. with Reserved Font Name "白源", "HackGen"]]\\ 
 +[[wwjp>SIL_Open_Font_License|SIL Open Font License]] Version 1.1.\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ curl -LO https://github.com/yuru7/HackGen/releases/download/v2.7.0/HackGen_v2.7.0.zip+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">curl</span> <span style="color:#A347BA">-LO</span> https://github.com/yuru7/HackGen/releases/download/v2.9.0/HackGen_NF_v2.9.0.zip
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current+% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                  Dload  Upload   Total   Spent    Left  Speed                                  Dload  Upload   Total   Spent    Left  Speed
   0        0        0          0      0 --:--:-- --:--:-- --:--:--     0   0        0        0          0      0 --:--:-- --:--:-- --:--:--     0
-100 38.5M  100 38.5M        0  8257k       0:00:04  0:00:04 --:--:-- 8983k+100 23.0M  100 23.0M        0  8693k       0:00:02  0:00:02 --:--:-- 11.2M
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ curl -LO https://github.com/yuru7/HackGen/releases/download/v2.7.0/HackGen_NF_v2.7.0.zip+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">curl</span> <span style="color:#A347BA">-LO</span> https://github.com/yuru7/HackGen/releases/download/v2.9.0/HackGen_v2.9.0.zip
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current+% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                  Dload  Upload   Total   Spent    Left  Speed                                  Dload  Upload   Total   Spent    Left  Speed
   0        0        0          0      0 --:--:-- --:--:-- --:--:--     0   0        0        0          0      0 --:--:-- --:--:-- --:--:--     0
-100 42.0M  100 42.0M        0  2229k       0:00:19  0:00:19 --:--:-- 2223k+100 38.5M  100 38.5M        0  9460k       0:00:04  0:00:04 --:--:-- 11.3M
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ unzip HackGen_v2.7.0.zip+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">unzip</span> <u style="text-decoration-style:single">HackGen_v2.9.0.zip</u>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-Archive:  HackGen_v2.7.0.zip +Archive:  HackGen_v2.9.0.zip 
-   creating: HackGen_v2.7.0/ +   creating: HackGen_v2.9.0/ 
-  inflating: HackGen_v2.7.0/HackGen-Bold.ttf   +  inflating: HackGen_v2.9.0/HackGen-Bold.ttf   
-  inflating: HackGen_v2.7.0/HackGen-Regular.ttf   +  inflating: HackGen_v2.9.0/HackGen-Regular.ttf   
-  inflating: HackGen_v2.7.0/HackGen35-Bold.ttf   +  inflating: HackGen_v2.9.0/HackGen35-Bold.ttf   
-  inflating: HackGen_v2.7.0/HackGen35-Regular.ttf   +  inflating: HackGen_v2.9.0/HackGen35-Regular.ttf   
-  inflating: HackGen_v2.7.0/HackGen35Console-Bold.ttf   +  inflating: HackGen_v2.9.0/HackGen35Console-Bold.ttf   
-  inflating: HackGen_v2.7.0/HackGen35Console-Regular.ttf   +  inflating: HackGen_v2.9.0/HackGen35Console-Regular.ttf   
-  inflating: HackGen_v2.7.0/HackGenConsole-Bold.ttf   +  inflating: HackGen_v2.9.0/HackGenConsole-Bold.ttf   
-  inflating: HackGen_v2.7.0/HackGenConsole-Regular.ttf+  inflating: HackGen_v2.9.0/HackGenConsole-Regular.ttf
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ unzip HackGen_NF_v2.7.0.zip+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">unzip</span> <u style="text-decoration-style:single">HackGen_NF_v2.9.0.zip</u>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-Archive:  HackGen_NF_v2.7.0.zip +Archive:  HackGen_NF_v2.9.0.zip 
-   creating: HackGen_NF_v2.7.0/ +   creating: HackGen_NF_v2.9.0/ 
-  inflating: HackGen_NF_v2.7.0/HackGen35ConsoleNF-Bold.ttf   +  inflating: HackGen_NF_v2.9.0/HackGen35ConsoleNF-Bold.ttf   
-  inflating: HackGen_NF_v2.7.0/HackGen35ConsoleNF-Regular.ttf   +  inflating: HackGen_NF_v2.9.0/HackGen35ConsoleNF-Regular.ttf   
-  inflating: HackGen_NF_v2.7.0/HackGen35ConsoleNFJ-Bold.ttf   +  inflating: HackGen_NF_v2.9.0/HackGenConsoleNF-Bold.ttf   
-  inflating: HackGen_NF_v2.7.0/HackGen35ConsoleNFJ-Regular.ttf   +  inflating: HackGen_NF_v2.9.0/HackGenConsoleNF-Regular.ttf
-  inflating: HackGen_NF_v2.7.0/HackGenConsoleNF-Bold.ttf   +
-  inflating: HackGen_NF_v2.7.0/HackGenConsoleNF-Regular.ttf   +
-  inflating: HackGen_NF_v2.7.0/HackGenConsoleNFJ-Bold.ttf   +
-  inflating: HackGen_NF_v2.7.0/HackGenConsoleNFJ-Regular.ttf+
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  
-TrueType(.ttf) から Web Open Font Format(.woff と .woff2) へ変換する🤤\\+==== TrueType(.ttf) から Web Open Font Format(.woff と .woff2) へ変換🤤 ====
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ cd HackGen_v2.7.0 +<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">cd</span> <u style="text-decoration-style:single">HackGen_v2.9.0</u> 
-$ ls *.ttf | xargs -i sh -c 'sfnt2woff {} && woff2_compress {}'+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">ls</span> <span style="color:#13496F"><b>*</b></span>.ttf <span style="color:#13496F"><b>|</b></span> <span style="color:#26A269">xargs</span> <span style="color:#A347BA">-i</span> sh <span style="color:#A347BA">-c</span> <span style="color:#A2734C">&apos;sfnt2woff </span><span style="color:#13496F"><b>{}</b></span><span style="color:#A2734C"> &amp;&amp; woff2_compress </span><span style="color:#13496F"><b>{}</b></span><span style="color:#A2734C">&apos;</span>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 Processing HackGen-Bold.ttf => HackGen-Bold.woff2 Processing HackGen-Bold.ttf => HackGen-Bold.woff2
-Compressed 9101224 to 3603584.+Compressed 9099366 to 3604694.
 Processing HackGen-Regular.ttf => HackGen-Regular.woff2 Processing HackGen-Regular.ttf => HackGen-Regular.woff2
-Compressed 8647775 to 3432021.+Compressed 8646957 to 3431083.
 Processing HackGen35-Bold.ttf => HackGen35-Bold.woff2 Processing HackGen35-Bold.ttf => HackGen35-Bold.woff2
-Compressed 9099743 to 3604808.+Compressed 9099743 to 3605098.
 Processing HackGen35-Regular.ttf => HackGen35-Regular.woff2 Processing HackGen35-Regular.ttf => HackGen35-Regular.woff2
-Compressed 8647249 to 3429783.+Compressed 8647249 to 3431110.
 Processing HackGen35Console-Bold.ttf => HackGen35Console-Bold.woff2 Processing HackGen35Console-Bold.ttf => HackGen35Console-Bold.woff2
-Compressed 9119537 to 3612645.+Compressed 9119537 to 3613699.
 Processing HackGen35Console-Regular.ttf => HackGen35Console-Regular.woff2 Processing HackGen35Console-Regular.ttf => HackGen35Console-Regular.woff2
-Compressed 8671988 to 3441571.+Compressed 8671988 to 3441818.
 Processing HackGenConsole-Bold.ttf => HackGenConsole-Bold.woff2 Processing HackGenConsole-Bold.ttf => HackGenConsole-Bold.woff2
-Compressed 9121961 to 3614896.+Compressed 9119552 to 3614099.
 Processing HackGenConsole-Regular.ttf => HackGenConsole-Regular.woff2 Processing HackGenConsole-Regular.ttf => HackGenConsole-Regular.woff2
-Compressed 8673351 to 3442435.+Compressed 8669945 to 3443688.
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ ll+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">ll</span>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 合計 153772 合計 153772
--rw-r--r-- 1 tomoyan tomoyan 11241608  8月 12 13:39 HackGen-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 11239764  5月  3 17:51 HackGen-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5243896  9月  9 05:41 HackGen-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  5243656  9月 23 10:52 HackGen-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3603692  9月  9 05:41 HackGen-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3604800  9月 23 10:52 HackGen-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 10695924  8月 12 13:39 HackGen-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 10695124  5月  3 17:51 HackGen-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5106380  9月  9 05:41 HackGen-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  5106732  9月 23 10:52 HackGen-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3432128  9月  9 05:42 HackGen-Regular.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3431188  9月 23 10:53 HackGen-Regular.woff2 
--rw-r--r-- 1 tomoyan tomoyan 11239408  8月 12 13:39 HackGen35-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 11239408  5月  3 17:51 HackGen35-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5243032  9月  9 05:42 HackGen35-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  5243108  9月 23 10:53 HackGen35-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3604916  9月  9 05:42 HackGen35-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3605204  9月 23 10:53 HackGen35-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 10694628  8月 12 13:39 HackGen35-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 10694628  5月  3 17:51 HackGen35-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5105240  9月  9 05:42 HackGen35-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  5105320  9月 23 10:53 HackGen35-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3429888  9月  9 05:43 HackGen35-Regular.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3431216  9月 23 10:54 HackGen35-Regular.woff2 
--rw-r--r-- 1 tomoyan tomoyan 11250760  8月 12 13:39 HackGen35Console-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 11250760  5月  3 17:51 HackGen35Console-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5250112  9月  9 05:43 HackGen35Console-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  5250220  9月 23 10:54 HackGen35Console-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3612752  9月  9 05:43 HackGen35Console-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3613804  9月 23 10:54 HackGen35Console-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 10711388  8月 12 13:39 HackGen35Console-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 10711388  5月  3 17:51 HackGen35Console-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5113044  9月  9 05:43 HackGen35Console-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  5113104  9月 23 10:54 HackGen35Console-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3441676  9月  9 05:44 HackGen35Console-Regular.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3441924  9月 23 10:55 HackGen35Console-Regular.woff2 
--rw-r--r-- 1 tomoyan tomoyan 11254224  8月 12 13:39 HackGenConsole-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 11251872  5月  3 17:51 HackGenConsole-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5252392  9月  9 05:44 HackGenConsole-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  5252108  9月 23 10:55 HackGenConsole-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3615004  9月  9 05:44 HackGenConsole-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  3614204  9月 23 10:55 HackGenConsole-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 10713656  8月 12 13:39 HackGenConsole-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 10710336  5月  3 17:51 HackGenConsole-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5114584  9月  9 05:44 HackGenConsole-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  5115612  9月 23 10:55 HackGenConsole-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3442540  9月  9 05:44 HackGenConsole-Regular.woff2+-rw-r--r-- 1 tomoyan tomoyan  3443796  9月 23 10:56 HackGenConsole-Regular.woff2
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ cd HackGen_NF_v2.7.0 +<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">cd</span> <u style="text-decoration-style:single">../HackGen_NF_v2.9.0</u> 
-$ ls *.ttf | xargs -i sh -c 'sfnt2woff {} && woff2_compress {}'+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">ls</span> <span style="color:#13496F"><b>*</b></span>.ttf <span style="color:#13496F"><b>|</b></span> <span style="color:#26A269">xargs</span> <span style="color:#A347BA">-i</span> sh <span style="color:#A347BA">-c</span> <span style="color:#A2734C">&apos;sfnt2woff </span><span style="color:#13496F"><b>{}</b></span><span style="color:#A2734C"> &amp;&amp; woff2_compress </span><span style="color:#13496F"><b>{}</b></span><span style="color:#A2734C">&apos;</span>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 Processing HackGen35ConsoleNF-Bold.ttf => HackGen35ConsoleNF-Bold.woff2 Processing HackGen35ConsoleNF-Bold.ttf => HackGen35ConsoleNF-Bold.woff2
-Compressed 9749308 to 3987578.+Compressed 10551428 to 4365109.
 Processing HackGen35ConsoleNF-Regular.ttf => HackGen35ConsoleNF-Regular.woff2 Processing HackGen35ConsoleNF-Regular.ttf => HackGen35ConsoleNF-Regular.woff2
-Compressed 9301797 to 3812450. +Compressed 10103895 to 4187458.
-Processing HackGen35ConsoleNFJ-Bold.ttf => HackGen35ConsoleNFJ-Bold.woff2 +
-Compressed 9776078 to 3987074. +
-Processing HackGen35ConsoleNFJ-Regular.ttf => HackGen35ConsoleNFJ-Regular.woff2 +
-Compressed 9328505 to 3816237.+
 Processing HackGenConsoleNF-Bold.ttf => HackGenConsoleNF-Bold.woff2 Processing HackGenConsoleNF-Bold.ttf => HackGenConsoleNF-Bold.woff2
-Compressed 9751604 to 3989577.+Compressed 10551379 to 4366483.
 Processing HackGenConsoleNF-Regular.ttf => HackGenConsoleNF-Regular.woff2 Processing HackGenConsoleNF-Regular.ttf => HackGenConsoleNF-Regular.woff2
-Compressed 9303032 to 3815936. +Compressed 10101788 to 4189298.
-Processing HackGenConsoleNFJ-Bold.ttf => HackGenConsoleNFJ-Bold.woff2 +
-Compressed 9778374 to 3988063. +
-Processing HackGenConsoleNFJ-Regular.ttf => HackGenConsoleNFJ-Regular.woff2 +
-Compressed 9329740 to 3814213.+
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ ll+<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">ll</span>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-合計 166816 +合計 90800 
--rw-r--r-- 1 tomoyan tomoyan 12054672  8月 12 13:39 HackGen35ConsoleNF-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 13060044  5月  3 17:51 HackGen35ConsoleNF-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5712460  9月  9 04:37 HackGen35ConsoleNF-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  6238424  9月 23 11:01 HackGen35ConsoleNF-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3987684  9月  9 04:38 HackGen35ConsoleNF-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  4365216  9月 23 11:01 HackGen35ConsoleNF-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 11515332  8月 12 13:39 HackGen35ConsoleNF-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 12520684  5月  3 17:51 HackGen35ConsoleNF-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5575200  9月  9 04:38 HackGen35ConsoleNF-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  6101096  9月 23 11:01 HackGen35ConsoleNF-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3812556  9月  9 04:39 HackGen35ConsoleNF-Regular.woff2 +-rw-r--r-- 1 tomoyan tomoyan  4187564  9月 23 11:02 HackGen35ConsoleNF-Regular.woff2 
--rw-r--r-- 1 tomoyan tomoyan 12081440  8月 12 13:39 HackGen35ConsoleNFJ-Bold.ttf +-rw-r--r-- 1 tomoyan tomoyan 13061184  5月  3 17:51 HackGenConsoleNF-Bold.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5713384  9月  9 04:39 HackGen35ConsoleNFJ-Bold.woff +-rw-r--r-- 1 tomoyan tomoyan  6240728  9月 23 11:02 HackGenConsoleNF-Bold.woff 
--rw-r--r-- 1 tomoyan tomoyan  3987180  9月  9 04:39 HackGen35ConsoleNFJ-Bold.woff2 +-rw-r--r-- 1 tomoyan tomoyan  4366588  9月 23 11:02 HackGenConsoleNF-Bold.woff2 
--rw-r--r-- 1 tomoyan tomoyan 11542040  8月 12 13:39 HackGen35ConsoleNFJ-Regular.ttf +-rw-r--r-- 1 tomoyan tomoyan 12519656  5月  3 17:51 HackGenConsoleNF-Regular.ttf 
--rw-r--r-- 1 tomoyan tomoyan  5576356  9月  9 04:39 HackGen35ConsoleNFJ-Regular.woff +-rw-r--r-- 1 tomoyan tomoyan  6104016  9月 23 11:02 HackGenConsoleNF-Regular.woff 
--rw-r--r-- 1 tomoyan tomoyan  3816344  9月  9 04:40 HackGen35ConsoleNFJ-Regular.woff2 +-rw-r--r-- 1 tomoyan tomoyan  4189404  9月 23 11:03 HackGenConsoleNF-Regular.woff2
--rw-r--r-- 1 tomoyan tomoyan 12058104  8月 12 13:39 HackGenConsoleNF-Bold.ttf +
--rw-r--r-- 1 tomoyan tomoyan  5715004  9月  9 04:40 HackGenConsoleNF-Bold.woff +
--rw-r--r-- 1 tomoyan tomoyan  3989684  9月  9 04:41 HackGenConsoleNF-Bold.woff2 +
--rw-r--r-- 1 tomoyan tomoyan 11517568  8月 12 13:39 HackGenConsoleNF-Regular.ttf +
--rw-r--r-- 1 tomoyan tomoyan  5577036  9月  9 04:41 HackGenConsoleNF-Regular.woff +
--rw-r--r-- 1 tomoyan tomoyan  3816044  9月  9 04:41 HackGenConsoleNF-Regular.woff2 +
--rw-r--r-- 1 tomoyan tomoyan 12084872  8月 12 13:39 HackGenConsoleNFJ-Bold.ttf +
--rw-r--r-- 1 tomoyan tomoyan  5715760  9月  9 04:41 HackGenConsoleNFJ-Bold.woff +
--rw-r--r-- 1 tomoyan tomoyan  3988168  9月  9 04:42 HackGenConsoleNFJ-Bold.woff2 +
--rw-r--r-- 1 tomoyan tomoyan 11544276  8月 12 13:39 HackGenConsoleNFJ-Regular.ttf +
--rw-r--r-- 1 tomoyan tomoyan  5578188  9月  9 04:42 HackGenConsoleNFJ-Regular.woff +
--rw-r--r-- 1 tomoyan tomoyan  3814320  9月  9 04:43 HackGenConsoleNFJ-Regular.woff2+
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 251: 行 229:
  
 ===== 参考文献 ===== ===== 参考文献 =====
 +[[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://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://01earth.jp/web-create/coding/web-font/|自社サーバーにフォントをアップロードして、Webフォントを使用する方法|株式会社ゼロワンアース]]\\
 [[https://en.wikipedia.org/wiki/Web_Open_Font_Format|Web Open Font Format - Wikipedia]]\\ [[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://developer.mozilla.org/ja/docs/Web/Guide/WOFF|WOFF (Web Open Font Format) - 開発者ガイド | MDN]]\\
-[[https://christina04.hatenablog.com/entry/2017/04/12/002333|]]\\+[[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]]\\ [[tw>tomoyan596sp/status/1567951237596983296|Linuxでパッケージ化されているので、sfnt2woffとwoff2_compressが含まれるパッケージはこれで良さそうですけど試します🤔 $ sudo dnf install woff woff2-tools]]\\
  
  • web/web_font.1663872318.txt.gz
  • 最終更新: 2022/09/23 03:45
  • by ともやん