Parsing the Hershey font format

痞子三分冷 提交于 2019-12-06 11:06:43

You've got it wrong. "R" is not a "pen up" — " R" is "pen up" (space + R). The vertices are:

MX VN TM RM PN OP OS PU RV TV VU

"R" is not special, it's just the zero of the coordinate system, so "RM" is [0; -5].

Aye - and the number of vertices is not quite a vertices count - but a count of the number of pairs to follow; including the initial left/right and the ' R' move flag. See the function parse:()path in https://github.com/dirkx/HersheyEngravingFontsForCocoaAndiPhone for an example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!