Two fonts in the same sentence

喜夏-厌秋 提交于 2019-12-13 17:07:05

问题


In gnuplot, how do I make labels consist of two parts, one of which is in regular text, and the other is in boldface? It's only easy to set a font for an entire sentence.


回答1:


Using gnuplot 5 it is quite easy. In enhanced text mode, which is by default switched on, you can use the syntax {/:Bold ...} to select the boldface of whatever font is currently select. Likewise, using {/:Normal ...} and {/:Italic ...} selects normal or italic font styles:

set label 1 center at 0,0 '{/:Bold bold {/:Normal normal} {/:Italic bold italic}} {/:Italic italic}' font 'Linux Biolinum O,20'
plot x



来源:https://stackoverflow.com/questions/31278662/two-fonts-in-the-same-sentence

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