Can I convert embedded base64 encode font to a font file?

后端 未结 3 1198
耶瑟儿~
耶瑟儿~ 2021-01-30 11:48

I have an @font-face rule, and its look like this:

@font-face{
    font-family:\'F\';
src:url(\"\") format(\"embedded-opentype\"),
url(data:application/x-font-wo         


        
3条回答
  •  臣服心动
    2021-01-30 12:06

    Copy the base64 encoded part and convert it. There are many ways to do that.

    Linux

    base64 -d base64_encoded_font.txt > font.woff
    

    Mac OS X

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

    WIndows

    Go to http://www.motobit.com/util/base64-decoder-encoder.asp and paste the text. Choose "decode the data from a Base64 string (base64 decoding)" and "export to a binary file".

提交回复
热议问题