我正在使用strwidth()函数(参见下面的链接),并正在寻找一个解决方案来定义Linux上的字体别名
R Graph - graphical string measurement
我们可以在下面的链接中为svglite定义字体别名吗?
https://cran.r-project.org/web/packages/svglite/vignettes/fonts.html
发布于 2020-06-12 01:39:16
大多数Linux发行版都使用Fontconfig来定义字体别名。R所使用的大多数图形设备都应该尊重这些功能。
例如,要将Tinos定义为Times的别名,可以将以下行添加到文件~/.config/fontconfig/fonts.conf中,即<fontconfig>和</fontconfig>标记之间。
<match>
<test name="family"><string>Times New Roman</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Tinos</string>
</edit>
</match>请注意,如果~/.config/fontconfig/fonts.conf还不存在,则需要首先创建它并将以下行放入其中
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
</fontconfig>如果您想将这些更改应用到系统范围内,而不只是针对一个用户,那么请改为编辑etc/fonts/local.conf。
https://stackoverflow.com/questions/60532912
复制相似问题