同一句子中的两种字体 [英] Two fonts in the same sentence

查看:75
本文介绍了同一句子中的两种字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gnuplot中,如何使标签由两部分组成,其中一部分为常规文本,另一部分为黑体?为整个句子设置字体很容易.

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.

推荐答案

使用gnuplot 5非常简单.在默认情况下处于打开状态的enhanced文本模式下,可以使用语法{/:Bold ...}选择当前所选字体的粗体.同样,使用{/:Normal ...}{/:Italic ...}选择普通或斜体字体样式:

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

这篇关于同一句子中的两种字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆