我遇到了一个使用编码字体信息的网站.我尝试通过 Base64 Endoder/Decoder Web 服务将此编码字体转换为二进制文件,但我找不到结果文件的格式.
I encountered a website which used encoded font information. I tried to convert this encoded font to a binary file through the Base64 Endoder/Decoder Web service, but I couldn't find out what is the format of the resulting file.
这里是编码后的 CSS 内容(内容太大,无法复制/粘贴在这里).
Here is the encoded CSS content (the content is too big to be copied/paste here).
谢谢!
请不要猜测我想做什么.
我想问一些关于 base64 代码是如何被伪造的问题,以及我缺少什么能够扭转这个过程,这意味着我不了解其中的所有内容.这些技术通常用于具有自定义字体的网页中,并且与直接在 CSS 文件中引用的原始字体文件相比似乎有一些改进.我完全清楚所涉及的字体是商业字体,不能随意使用.
I am asking questions about how the base64 code has been forged and what I am missing to be able to reverse the process, which means I do not understand everything in it. These technique is often used in webpages with custom fonts, and seems to have some improvements compared to the raw font file directly given reference in the CSS file. I am fully aware that the involved fonts are commercial ones and can't be used freely.
那场辩论跑题了,停止拖钓.
That debate is off-topic, stop trolling.
1) 定位完整的字体声明,例如data:font/opentype;base64,AaBbCcDdEeFf0123456789==
1) locate the complete font declaration, for example, data:font/opentype;base64,AaBbCcDdEeFf0123456789==
2) 复制编码数据部分;排除前导类型声明和逗号.
2) copy the encoded data portion; exclude the leading type declaration and comma.
删除这个 data:font/opentype;base64,
你想要这个:AaBbCcDdEeFf0123456789==
3) 解码数据并保存为二进制编码文件.不要解码数据并将结果手动粘贴到文本编辑器中.使用 http://www.motobit.com/util/base64-decoder-encoder.asp 选择从 Base64 字符串解码数据"和导出到二进制文件"选项.
3) decode the data and save as a binary encoded file. Do not decode the data and manually paste the result into a text editor. Use http://www.motobit.com/util/base64-decoder-encoder.asp Select the "decode the data from a Base64 string" and "export to a binary file" options.
4) 使用纯文本编辑器查看文件.文件的前 3 或 4 个字母可能是woff"、otf"或ttf".这是您的实际文件类型.
4) View the file using a plain text editor. The first 3 or 4 letters of the file are probably "woff", "otf", or "ttf". This is your actual file type.
这篇关于如何解码 base64 编码的字体信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!