我是 Ubuntu 新手,需要在 LibreOffice 中使用 Microsoft TTF 字体。有人能指导我如何使用命令行执行此操作吗?我已经在 Ubuntu 桌面上下载了所需的 TTF 文件。
答案1
这应该有帮助。
sudo apt-get install ttf-mscorefonts-installer
答案2
查看这个更完整的解决方案。
Windows 核心字体
sudo apt-get install ttf-mscorefonts-installer
微软的 ClearType 字体(Windows Vista 字体)
wget https://gist.github.com/maxwelleite/10774746/raw/ttf-vista-fonts-installer.sh -q -O - | sudo bash
微软塔霍马
wget https://gist.githubusercontent.com/maxwelleite/913b6775e4e408daa904566eb375b090/raw/cbfd8eb70184fa509fcab37dad7905676c93d587/ttf-ms-tahoma-installer.sh -q -O - | sudo bash
葡萄酒塔霍玛
Segoe 用户界面
$ sudo mkdir -p /usr/share/fonts/truetype/msttcorefonts/ $ cd /usr/share/fonts/truetype/msttcorefonts/ $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeui.ttf?raw=true -O segoeui.ttf # regular $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeuib.ttf?raw=true -O segoeuib.ttf # bold $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeuib.ttf?raw=true -O segoeuii.ttf # italic $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeuiz.ttf?raw=true -O segoeuiz.ttf # bold italic $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeuil.ttf?raw=true -O segoeuil.ttf # light $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/seguili.ttf?raw=true -O seguili.ttf # light italic $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/segoeuisl.ttf?raw=true -O segoeuisl.ttf # semilight $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/seguisli.ttf?raw=true -O seguisli.ttf # semilight italic $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/seguisb.ttf?raw=true -O seguisb.ttf # semibold $ sudo wget -q https://github.com/martinring/clide/blob/master/doc/fonts/seguisbi.ttf?raw=true -O seguisbi.ttf # semibold italic $ fc-cache -f /usr/share/fonts/truetype/msttcorefonts/
WPS Office 字体(符号字体)
$ cd \tmp $ wget -O ttf-wps-fonts-master.zip https://github.com/IamDH4/ttf-wps-fonts/archive/master.zip $ unzip -LL ttf-wps-fonts-master.zip $ cd ttf-wps-fonts-master $ sudo ./install.sh
答案3
答案4
您只需双击该文件并单击上方的安装即可,.ttf可以像这样轻松安装,或者将格式更改为.otf