在 Linux 发行版中安装 Times New Roman 字体

在Linux系统中安装Times New Roman字体,可以通过以下几种方法:

方法一:通过字体管理器安装(推荐)

  1. 下载字体文件

    • 从Windows系统复制times.ttftimesbd.ttftimesbi.ttftimesi.ttf等文件
    • 或从字体网站下载Times New Roman字体包
  2. 安装到系统字体目录

    bash 复制代码
    # 创建字体目录(如果不存在)
    mkdir -p ~/.local/share/fonts
    
    # 复制字体文件到目录
    cp times*.ttf ~/.local/share/fonts/
    
    # 更新字体缓存
    fc-cache -fv
  3. 验证安装

    bash 复制代码
    fc-list | grep -i "times new roman"

方法二:使用包管理器安装(部分发行版)

对于某些Linux发行版,可以通过包管理器安装:

Ubuntu/Debian

bash 复制代码
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -fv

Fedora/RHEL

bash 复制代码
sudo dnf install mscore-fonts
sudo fc-cache -fv

方法三:安装Microsoft Core Fonts

bash 复制代码
# 下载并安装Microsoft Core Fonts
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.8.1_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.8.1_all.deb
sudo apt-get install -f

验证字体是否可用

bash 复制代码
# 查看已安装的Times New Roman字体
fc-list | grep -i "times"

# 或使用fc-match检查字体匹配
fc-match "Times New Roman"

安装完成后,重启相关应用程序(如LibreOffice、GIMP等)即可使用Times New Roman字体。

相关推荐
2501_918126915 小时前
学习所有6502写游戏控制器的语句
java·linux·网络·汇编·嵌入式硬件
JuckenBoy5 小时前
Linux环境安装SGLang框架运行自选大模型(以Rocky9.7为例)
linux·运维·大模型·qwen·rocky·deepseek·sglang
十巷无终5 小时前
Kali Virtual Machines(虚拟机镜像)安装后问题及解决办法
linux·运维·服务器
赵民勇5 小时前
gtkmm库之GtkWindow与ApplicationWindow用法详解
linux·c++
BestOrNothing_20155 小时前
(4)Ubuntu 22.04 安装后使用 GParted 重新分区实战记录
linux·gparted·ubuntu22.04·ubuntu磁盘分区
架构指南5 小时前
Centos上安装Claude Code报GLIBC_2.27 not found
linux·运维·centos
Predestination王瀞潞5 小时前
4.3.1 存储->微软文件系统标准(微软,自有技术标准):exFAT(Extended File Allocation Table)扩展文件分配表系统
linux·运维·microsoft·exfat·ex4
你有按下913的勇气吗5 小时前
【Agent,RAG,Transform】
linux·运维·服务器
ken22325 小时前
linux OS : apt update 使用代理与环境变量
linux
last demo5 小时前
docker存储
运维·docker·容器