Ubuntu 命令行 安装 Operator Mono 字体

ubuntu 命令行 安装字体 Operator Mono

上传字体、下载字体到服务器

Python
(base) ~ TIME 9:04:57 > ls Operator\ Mono __MACOSX Operator Mono
1
2
3
4
5
( base )
~ TIME 9 : 04 : 57
> ls Operator \ Mono
__MACOSX   Operator Mono
 

拷贝字体到 /usr/share/fonts/

Python
~ TIME 9:03:55 > ls /usr/share/fonts/ default dejavu liberation urw-base35 (base) ~ TIME 9:04:12 > cp -r Operator\ Mono /usr/share/fonts/ (base) ~ TIME 9:04:31 > ls /usr/share/fonts/ default dejavu liberation Operator Mono urw-base35
1
2
3
4
5
6
7
8
9
10
11
~ TIME 9 : 03 : 55
> ls    / usr / share / fonts /
default   dejavu   liberation   urw - base35
( base )
~ TIME 9 : 04 : 12
> cp - r Operator \ Mono    / usr / share / fonts /
( base )
~ TIME 9 : 04 : 31
> ls    / usr / share / fonts /
default   dejavu   liberation   Operator Mono   urw - base35
 

刷新字体

Python
(base) ~ TIME 9:04:36 > fc-cache -f -v /usr/share/fonts: caching, new cache contents: 0 fonts, 5 dirs /usr/share/fonts/Operator Mono: caching, new cache contents: 0 fonts, 2 dirs /usr/share/fonts/Operator Mono/Operator Mono: caching, new cache contents: 10 fonts, 0 dirs /usr/share/fonts/Operator Mono/__MACOSX: caching, new cache contents: 0 fonts, 1 dirs /usr/share/fonts/Operator Mono/__MACOSX/Operator Mono: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/default: caching, new cache contents: 0 fonts, 2 dirs /usr/share/fonts/default/Type1: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/default/ghostscript: caching, new cache contents: 4 fonts, 0 dirs /usr/share/fonts/dejavu: caching, new cache contents: 9 fonts, 0 dirs /usr/share/fonts/liberation: caching, new cache contents: 16 fonts, 0 dirs /usr/share/fonts/urw-base35: caching, new cache contents: 69 fonts, 0 dirs /root/anaconda3/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /usr/share/fonts/Operator Mono: skipping, looped directory detected /usr/share/fonts/default: skipping, looped directory detected /usr/share/fonts/dejavu: skipping, looped directory detected /usr/share/fonts/liberation: skipping, looped directory detected /usr/share/fonts/urw-base35: skipping, looped directory detected /usr/share/fonts/Operator Mono/Operator Mono: skipping, looped directory detected /usr/share/fonts/Operator Mono/__MACOSX: skipping, looped directory detected /usr/share/fonts/default/Type1: skipping, looped directory detected /usr/share/fonts/default/ghostscript: skipping, looped directory detected /usr/share/fonts/Operator Mono/__MACOSX/Operator Mono: skipping, looped directory detected /root/anaconda3/var/cache/fontconfig: cleaning cache directory /root/.cache/fontconfig: not cleaning non-existent cache directory /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
( base )
~ TIME 9 : 04 : 36
> fc - cache - f - v
/ usr / share / fonts : caching , new cache contents : 0 fonts , 5 dirs
/ usr / share / fonts / Operator Mono : caching , new cache contents : 0 fonts , 2 dirs
/ usr / share / fonts / Operator Mono / Operator Mono : caching , new cache contents : 10 fonts , 0 dirs
/ usr / share / fonts / Operator Mono / __MACOSX : caching , new cache contents : 0 fonts , 1 dirs
/ usr / share / fonts / Operator Mono / __MACOSX / Operator Mono : caching , new cache contents : 0 fonts , 0 dirs
/ usr / share / fonts / default : caching , new cache contents : 0 fonts , 2 dirs
/ usr / share / fonts / default / Type1 : caching , new cache contents : 0 fonts , 0 dirs
/ usr / share / fonts / default / ghostscript : caching , new cache contents : 4 fonts , 0 dirs
/ usr / share / fonts / dejavu : caching , new cache contents : 9 fonts , 0 dirs
/ usr / share / fonts / liberation : caching , new cache contents : 16 fonts , 0 dirs
/ usr / share / fonts / urw - base35 : caching , new cache contents : 69 fonts , 0 dirs
/ root / anaconda3 / fonts : skipping , no such directory
/ root / . local / share / fonts : skipping , no such directory
/ root / . fonts : skipping , no such directory
/ usr / share / fonts / Operator Mono : skipping , looped directory detected
/ usr / share / fonts / default : skipping , looped directory detected
/ usr / share / fonts / dejavu : skipping , looped directory detected
/ usr / share / fonts / liberation : skipping , looped directory detected
/ usr / share / fonts / urw - base35 : skipping , looped directory detected
/ usr / share / fonts / Operator Mono / Operator Mono : skipping , looped directory detected
/ usr / share / fonts / Operator Mono / __MACOSX : skipping , looped directory detected
/ usr / share / fonts / default / Type1 : skipping , looped directory detected
/ usr / share / fonts / default / ghostscript : skipping , looped directory detected
/ usr / share / fonts / Operator Mono / __MACOSX / Operator Mono : skipping , looped directory detected
/ root / anaconda3 / var / cache / fontconfig : cleaning cache directory
/ root / . cache / fontconfig : not cleaning non - existent cache directory
/ root / . fontconfig : not cleaning non - existent cache directory
fc - cache : succeeded
 

vscode 切换喜欢的字体

Python
# settings.json "editor.fontFamily": "'Operator Mono Light',Fira Code",
1
2
3
# settings.json
"editor.fontFamily" : "'Operator Mono Light',Fira Code" ,
 

字体可以在下面的文章中找到

https://www.168seo.cn/mac-os/24651.html




  • zeropython 微信公众号 5868037 QQ号 5868037@qq.com QQ邮箱
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值