ubuntu 命令行 安装字体 Operator Mono
上传字体、下载字体到服务器
(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/
~ 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
|
刷新字体
(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 切换喜欢的字体
# 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