埋め込まれたbase64エンコードフォントをフォントファイルに変換できますか? 質問する

埋め込まれたbase64エンコードフォントをフォントファイルに変換できますか? 質問する

@font-face ルールがあり、次のようになります。

@font-face{
    font-family:'F';
src:url("") format("embedded-opentype"),
url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAA ... ETC... ETC

これをフォントファイルに変換できますか?

ありがとう!

ベストアンサー1

base64 でエンコードされた部分をコピーして変換します。これを行うには多くの方法があります。

リナックス

base64 -d base64_encoded_font.txt > font.woff

Mac OS X

openssl base64 -d -in base64_encoded_font.txt -out font.woff

ウィンドウズ

へ移動http://www.motobit.com/util/base64-decoder-encoder.aspテキストを貼り付けます。「Base64 文字列からデータをデコードする (base64 デコード)」と「バイナリ ファイルにエクスポートする」を選択します。

おすすめ記事