rocky9 手动安装新罗马字体

rocky9 手动安装新罗马字体

下载载微软 Times New Roman 字体包

cd /tmp
curl -LO https://downloads.sourceforge.net/project/corefonts/the%20fonts/final/times32.exe

解压字体

cabextract times32.exe
安装到系统字体目录
sudo mkdir -p /usr/share/fonts/msttcore
sudo cp *.TTF /usr/share/fonts/msttcore/
刷新字体缓存(必须)
sudo fc-cache -fv

验证是否成功
fc-list | grep "Times New Roman"


二、R 中直接使用(无需额外配置)

ggplot2(全局统一字体)

library(ggplot2)
theme_set(
  theme_bw(base_family = "Times New Roman")
)
par(family = "Times New Roman")
plot(1:10, main = "Base R test")
ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  ggtitle("ggplot2 test")
  • 发表于 2026-01-13 16:02
  • 阅读 ( 104 )
  • 分类:转录组

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

751 篇文章

作家榜 »

  1. omicsgene 751 文章
  2. 安生水 367 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 94 文章
  6. rzx 87 文章
  7. 红橙子 81 文章
  8. Ti Amo 74 文章