简体   繁体   English

好时字体“字形数”混乱

[英]Hershey font “glyph number” confusion

I am trying to write a parser for hershey fonts: http://paulbourke.net/dataformats/hershey/ 我正在尝试为好时字体编写一个解析器: http : //paulbourke.net/dataformats/hershey/

But I have a question. 但是我有一个问题。 The first five characters on each line should be the glyph number, but my question is, what exactly does this number mean? 每行的前五个字符应该是字形数字,但是我的问题是,这个数字到底是什么意思? Is it the unicode/ascii code for the character? 它是字符的unicode / ascii代码吗?

And in some hershey font files I've found, like the ones on this page: http://emergent.unpythonic.net/software/hershey all glyphs have the same number: "12345". 在一些好时字体文件中,例如本页上的文件: http ://emergent.unpythonic.net/software/hershey,我发现所有字形都具有相同的数字:“ 12345”。 How am I supposed to interpret this? 我该怎么解释? The glyph numbers are not unique which defeats the purpose, doesn't it? 字形数字不是唯一达到目的的,不是吗? How do I know what glyph corresponds to what symbol? 我怎么知道什么符号对应什么符号?

Thanks 谢谢

No, the glyph number is a local Hershey-specific thing. 不,字形数字是本地的好时特有的东西。 The page you link to has a list of files that map Hershey glyph numbers to ASCII. 您链接到的页面上有一个文件列表,这些文件将Hershey字形数字映射到ASCII。

And yes, if the glyph number is the same for all glyphs then the file is broken. 是的,如果所有字形的字形号均相同,则文件已损坏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM