转换的base64字体回TTF或OTF [英] Converting base64 font back to ttf or otf

查看:1826
本文介绍了转换的base64字体回TTF或OTF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照下面的说明,但我没能成功转换到.woff

<一个href=\"http://stackoverflow.com/questions/12531731/can-i-convert-embedded-base64-en$c$c-font-to-a-font-file\">Can我频转换的base64嵌入连接code字体的字体文件?

我的字体文件开始以

  @字体面{
FONT-FAMILY:ff_0f65bfd4c8d788fc278265526​​a59
SRC:URL(数据:字体/ WOFF; BASE64,d09GRk9UVE8AAGQDAAs ............

和结尾

  ........... PPvfkLBXJFlQ ==);
}

我只能假设问题是code,我试图转换的部分。任何帮助将是非常美联社preciated。

当我尝试下面的命令,它只是创建一个空文件。

 的OpenSSL的base64 -d -in base64_en coded_font.txt退房手续font.woff


解决方案

是的,你可以通过使用两个在线工具。

先复制的base64数据,所以一切后'的base64,并离开了);结尾。然后去这个网站并粘贴code:

<一个href=\"http://www.opinionatedgeek.com/dotnet/tools/Base64De$c$c/\">http://www.opinionatedgeek.com/dotnet/tools/Base64De$c$c/

它会下载一个.bin文件。接下来请访问:

https://onlinefontconverter.com

上传右侧的.bin文件,并选择转换为OTF或TIFF从左侧的链接。单击新的下载链接。下载,解压缩和您的字体会在那里!

I've followed the instructions below but I've not been able to successfully convert to .woff

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

my font file starts with

@font-face {
font-family: "ff_0f65bfd4c8d788fc278265526a59";
src: url(data:font/woff;base64,d09GRk9UVE8AAGQDAAs............

and ends with

...........PPvfkLBXJFlQ==);
}

I can only assume the issue is the portion of the code I'm trying to convert. Any help would be much appreciated.

When I attempt the command below, it just creates an empty file.

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

解决方案

Yes you can by using two online tools.

First copy the base64 data, so everything after 'base64,' and leave out the ); ending. Then go this website and paste the code:

http://www.opinionatedgeek.com/dotnet/tools/Base64Decode/

It will download a .bin file. Next go to:

https://onlinefontconverter.com

Upload your .bin file on the right and select convert to otf or tiff from the links on the left. Click the new download link. Download, unzip and your font will be in there!

这篇关于转换的base64字体回TTF或OTF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆