[英]How to unregister removed fonts from R extrafontdb
I have loaded my fonts using我已经使用加载了我的字体
library(extrafont)
font_import()
When I look at the path using当我查看路径时
fonttable()
There are some fonts which does not exist any longer under that path.有一些字体在该路径下不再存在。 This creates some problems for me later on.
这给我以后带来了一些问题。 How do I remove/unregister them from the font database?
如何从字体数据库中删除/取消注册它们?
Just rerunning font_import does not work.只是重新运行 font_import 是行不通的。
It's easy, just run the following code:很简单,只需运行以下代码:
db_path <- paste0(system.file(package = "extrafontdb"),"/fontmap/fonttable.csv")
file.show(db_path)
This will open up a .csv file where you can just remove the fonts you want to unregister.这将打开一个 .csv 文件,您可以在其中删除要取消注册的字体。 Save the file when you're done and voilá!
完成后保存文件,瞧!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.