How to view a character with glyphshow?

依然范特西╮ 提交于 2019-12-24 06:58:32

问题


/Helvetica findfont setfont
/a glyphshow

The interpreter give out a nocurrentpoint error. How to show a character with glyphshow in PostScript?

Thanks.


回答1:


You have to indicate where to put it. (This is the meaning of the "nocurrentpoint" error.)

Oh, you'll also need to scale the font before setting it. The default font size is 1pt (1/72 inch) [very small]. (Not an error per se, but a foreseeable obstacle in your path.)

As pipitas (our SO Postscript top-dog) recommends, here's a complete example:

%!
/Helvetica findfont 24 scalefont setfont   %or: /Helvetica 24 selectfont
306 396 moveto    %move to center of 8.5x11 page
/a glyphshow
showpage


来源:https://stackoverflow.com/questions/8570533/how-to-view-a-character-with-glyphshow

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