本文介绍了如何使用glyphshow查看字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/Helvetica findfont setfont
/a glyphshow

解释器给出nocurrentpoint错误。如何在PostScript中使用glyphshow显示字符?

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

谢谢。

推荐答案

您必须在位置中注明。 (这是 nocurrentpoint错误的意思。)

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

哦,您还需要在设置字体之前先缩放字体。默认字体大小是1pt(1/72英寸)[非常小]。 (本身不是错误,而是您前进的道路上可预见的障碍。)

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.)

正如pipitas(我们的后记最高者)建议的那样,这是一个完整的示例:

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

这篇关于如何使用glyphshow查看字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 06:47