字体的外观是如何定义的? (每个字符的矢量图形?)

发布于 2024-08-10 11:14:08 字数 190 浏览 7 评论 0原文

有关字体的详细信息:当您有一些特定字体的文本时,会有一个标题说明该字体是什么,然后是每个字符 X 字节数。计算机查找该字符在字体中的外观并显示它。使用适用于所有字体的一组算法添加下划线、粗体和斜体。

问题:当您放大字体时,它不会丢失任何质量,那么每个字母是否都由某种矢量图形表示?

Details on fonts: When you have some text in specific font, there's a header that says what the font is and then characters that are X number of bytes apiece. The computer looks up what that character is supposed to look like in the font and displays it. Underlines, Bolds, and Italics are added using a set algorithm that applies to all fonts.

Question: When you zoom in on a font, it doesn't loose any quality, so is each letter represented by some sort of vector graphic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ˇ宁静的妩媚 2024-08-17 11:14:08

这取决于字体格式。有些字体是位图的,在这种情况下放大可能会导致锯齿状边缘等。位图字体曾经非常常见,因为它们允许手动调整特定尺寸,并且显示速度非常快。

最近的大多数字体格式都基于某种向量——通常类似于二次 B 样条线。大多数字体格式(例如 Adob​​e type 1、TrueType 和 OpenType)基本上都使用小型虚拟机,并且字体本质上被定义为要在该虚拟机上执行的一组指令。这增加了相当大的灵活性,例如添加“提示”,以便字体在以小尺寸渲染时仍然看起来不错。

还有一些“中间”格式 - 例如,16 位 Windows 使用矢量字体格式,仅根据要绘制的线条来描述字符,而没有任何提示之类的内容。这些字体的缩放效果比位图字体要好一些,但在极小或极大的尺寸下它们看起来仍然很差。

It depends on the font format. Some fonts are bitmapped, in which case zooming in can lead to jagged edges and such. Bitmapped fonts were once quite common because they allow hand-tuning for specific sizes, and they're very fast to display.

Most reasonably recent font formats are based on some sort of vectors -- typically something like quadratic b-splines. Most font formats like Adobe type 1, TrueType and OpenType basically use a small virtual machine, and the font is defined, in essence, as a set of instructions to be executed on that virtual machine. This adds considerable flexibility, such as adding "hints" so the font still looks good when rendered at a small size.

There are also a few "intermediate" formats -- for example, 16-bit Windows used a vector font format that just described characters in terms of lines to be drawn, without anything like hints. These scaled somewhat better than bitmapped fonts, but they still tended to look fairly poor at extremely small or extremely large sizes.

坠似风落 2024-08-17 11:14:08

TrueType 可能是当今最常见的字体格式。该规范可通过 http://www.truetype-typography.com/ttspec.htm

还有其他格式,但并非所有格式都具有您所描述的功能。例如,请参阅 BDF (您不想放大在)

TrueType is probably the most common format for fonts these days. The specification is available via http://www.truetype-typography.com/ttspec.htm

There are other formats, and not all of them exhibit the features you describe. See, for example, BDF (which you don't want to zoom in on)

爱本泡沫多脆弱 2024-08-17 11:14:08

这是维基百科上更多详细信息的链接。

http://en.wikipedia.org/wiki/Computer_font

Here's a link to some more details at Wikipedia.

http://en.wikipedia.org/wiki/Computer_font

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文