字体和字符编码
a) 字体是否了解编码字符集(Unicode、ASCII 等)?换句话说,字体文件是否指定哪些编码字符集可以使用该字体?
b) 我假设如果一种字体支持某些编码字符集,那么该编码字符集的任何字符编码(也称为代码页)都可以使用该字体?a) 字体文件是否还指定特定字形映射到哪个代码点?
b) 一个字形可以同时映射到多个代码点吗?如果是,那么当某些应用程序尝试将此字体映射到特定编码字符集时,如何选择正确的映射(字形到代码点)?
c) 字体基本上是一个包含如何绘制其字形的说明的文件吗?如果是,那么我假设每种字体都有自己的一组字形(即,它自己的一组关于如何绘制字形的指令)?
谢谢
a) Do fonts know anything about coded character sets (Unicode, ASCII, etc.)? In other words, does a font file specify which coded character sets may use the font?
b) I assume if a font supports certain coded character sets, then any character encoding (aka code page) for that coded character set can use this font?a) Does a font's file also specify which code point a particular glyph is mapped to?
b) Can a glyph be mapped to several code points at once? If yes, then how is correct mapping (of glyphs to code points) chosen when some application tries to map this font to a particular coded character set?
c) Is a font basically a file with instructions how to draw its glyphs? If yes, then I assume each font has its own set of glyphs (ie. its own set of instructions on how to draw glyphs)?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题很多,无法详细回答,所以:
A.是的,B. 是的
A.是,B. 不知道,C. 是
您需要的有关 .TTF/.OTF 字体的所有详细信息都在这里:http://www.microsoft.com/typography/otspec/otff.htm
如果通过将 Fonts 放在像
Fonts
这样的代码括号中,您指的是 .NET 中的对象,然后 WPF 提供了大部分此类信息:http://msdn.microsoft.com/en-us/library/ms748335.aspx。A lot of questions, can't answer them all in detail so:
A. Yes, B. Yes
A. Yes, B. Don't Know, C. Yes
All of the details you'll want about .TTF/.OTF fonts are here: http://www.microsoft.com/typography/otspec/otff.htm
If by putting Fonts in a code bracket like
Fonts
you mean an object in, say, .NET, then the WPF offers much of this info: http://msdn.microsoft.com/en-us/library/ms748335.aspx.