【问题标题】:Font in Gnuplot Postscript TerminalGnuplot Postscript 终端中的字体
【发布时间】:2010-06-27 12:54:42
【问题描述】:

我希望 gnuplot 在 postscript-terminal 中使用与 wxt-terminal 中相同的字体。 Gnuplot 帮助说 wxt 默认使用“Sans”。现在,如果我将终端设置为

gnuplot> set term post enhanced color "Sans" 12
Terminal type set to 'postscript'
Options are 'landscape enhanced defaultplex \
   leveldefault color colortext \
   dashed dashlength 1.0 linewidth 1.0 butt noclip \
   palfuncparam 2000,0.003 \
   "Sans" 12 '

那么字体看起来与 wxt 中的字体非常不同。 我正在使用 Ubuntu 10.04 清醒版。 您建议我使用哪种字体?欢迎任何想法。 我还尝试使用“cm-super”在 gnuplot 中获取乳胶字体(现代计算机)。实际上它有效,但文本经常重叠框和边距!

您好, 梅菲克斯

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    由于考虑的绘图是 LaTeX 文档的一部分,我决定使用前面描述的计算机现代字体。

    gnuplot> set term post enhanced color fontfile "/usr/share/texmf/fonts/type1/public/cm-super/sfss1200.pfb" "SFSS1200"
    Terminal type set to 'postscript'
    Font file '/usr/share/texmf/fonts/type1/public/cm-super/sfss1200.pfb' contains the font 'SFSS1200'. Location:
       /usr/share/texmf/fonts/type1/public/cm-super/sfss1200.pfb
    Options are 'landscape enhanced defaultplex \
       leveldefault color colortext \
       dashed dashlength 1.0 linewidth 1.0 butt noclip \
       palfuncparam 2000,0.003 \
       "SFSS1200" 14 fontfile "/usr/share/texmf/fonts/type1/public/cm-super/sfss1200.pfb" '
    

    如前所述,您可以通过调用在 ubuntu 下安装这些

    # apt-get install cm-super
    

    在根命令行上。

    请注意,SFSS1200 中的字符描述了字体编码(Latin1,...)、样式(Sans-Serif,...)和所需的 dpi 分辨率。

    【讨论】:

    • 非常感谢!我发现您还需要安装groff 才能获得pfbtops。此外,在 Gnuplot 5 中,您的示例会产生旋转图。有效的是set term postscript eps color fontfile "/usr/share/texmf/fonts/type1/public/cm-super/sfrm1200.pfb" "SFRM1200,24"。注意最后的24是字体大小。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-02
    • 1970-01-01
    • 1970-01-01
    • 2015-06-08
    • 2012-07-22
    相关资源
    最近更新 更多