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

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

问题描述

我已按照以下说明操作,但未能成功转换为 .woff

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

我可以转换嵌入的base64编码字体吗到字体文件?

我的字体文件以

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

...........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.

首先复制base64数据,所以'base64'之后的所有内容,并省略);结尾.然后去这个网站粘贴代码:

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/

它将下载一个 .bin 文件.下一步去:

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

https://onlinefontconverter.com

在右侧上传您的 .bin 文件,然后从左侧的链接中选择转换为 otf 或 tiff.单击新的下载链接.下载,解压,你的字体就在里面了!

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天全站免登陆