谁研究过矢量字体 如ttf

ryfdizuo 2012-07-03 07:26:05
ttf文件中保存的曲线,具体是啥内容?
假如ttf文件中保存的是字体的内外轮廓线,那么字体大小为10,字体大小为100,输出的内外轮廓线只是简单地等比例缩放吗?
谢谢回复~
...全文
158 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
schlafenhamster 2012-07-07
  • 打赏
  • 举报
回复
/* When an application calls the GetGlyphOutline function,
a glyph outline for a TrueType character is returned in a
TTPOLYGONHEADER structure, followed by as many TTPOLYCURVE
structures as are required to describe the glyph. All points
are returned as POINTFX structures and represent absolute positions,
not relative moves. The starting point given by the pfxStart member
of the TTPOLYGONHEADER structure is the point at which the outline
for a contour begins. The TTPOLYCURVE structures that follow can be
either polyline records or spline records. */


/* The PolyBezier() function draws cubic Bezier curves by using the endpoints
** and control points specified by the lppt parameter.
** The first curve is drawn from the first point to the fourth point
** by using the second and third points as control points.
** Each subsequent curve in the sequence needs exactly three more points:
** the ending point of the previous curve is used as the starting point,
** the next two points in the sequence are control points, and the third is the ending point. */

也就是说字体越大,样条的点数越多。

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧