在哪里可以找到.fon格式规范? [英] Where I can find .fon format specification?

查看:212
本文介绍了在哪里可以找到.fon格式规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑制作位图字体编辑器,但是我完全找不到有关 .fon 内部结构的任何信息。



有人知道我在哪里可以找到它?或者唯一的解决办法就是自己分析这些文件?解析方案

我会在前言中提到FON已经变得有点多种不同字体格式的常见文件扩展名。到目前为止,最常见的是微软的,但还有其他文件称自己的FON使用完全不同的格式。所以你可能要仔细检查一下。下面的信息只是关于微软的格式。


$ b FON实际上只是EXE格式,也就是说:FON文件是包含字体资源的EXE字体资源),用文件扩展名FON重命名。在这个非常古老的文档中写有更多的信息在FON被引入的时候。



您可能对字体资源格式(FNT)感兴趣。 微软有很好的文档



基本上你要做的就是创建你的FNT资源,然后编译它们就好像它们是一个Windows可执行文件一样(你可以在FON中包含多个FNT;通常做的是将多个相同字体的大小打包到一个FON中)。

I'm thinking about making a bitmap font editor, but I'm completely unable to find any information about .fon internal structure.

Someone knows where I can find it? Or the only solution is to analyse these files myself?

解决方案

I will preface this by mentioning that "FON" has become a somewhat common file extension for several different font formats. By far the most common is Microsoft's, but there are other files calling themselves FON which use a completely different format. So you may want to double-check that. The information I include below is only about the Microsoft format.

FON is actually just EXE format, which is to say: FON files are EXEs that contain font resources (and only font resources), renamed with file extension FON. There is more information about that in this very old documentation written around the time FON was introduced.

You are probably actually interested in the font resource format, known as FNT. Microsoft has good documentation on that.

Essentially what you do is create your FNT resources, then compile them as if they were a Windows Executable (you may include several FNTs in a FON; typically what is done is to package multiple sizes of the same font into a single FON).

这篇关于在哪里可以找到.fon格式规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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