在哪里可以找到.fon格式规范?

编程入门 行业动态 更新时间:2024-10-25 18:26:37
本文介绍了在哪里可以找到.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格式规范?

本文发布于:2023-06-06 10:49:55,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以找到   格式   fon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!