当前位置: 技术问答>linux和unix
Linux怎么卸载字体
来源: 互联网 发布时间:2017-05-27
本文导语: 系统 Fedora 12 安装了一个 ttf字体文件,安装方式,双击打开,字体预览右上角有个安装,然后就成功了,但是怎么卸载呢?急!!!!!! | How to remove many extra Linux fonts Fonts can be un...
系统 Fedora 12
安装了一个 ttf字体文件,安装方式,双击打开,字体预览右上角有个安装,然后就成功了,但是怎么卸载呢?急!!!!!!
安装了一个 ttf字体文件,安装方式,双击打开,字体预览右上角有个安装,然后就成功了,但是怎么卸载呢?急!!!!!!
|
How to remove many extra Linux fonts
Fonts can be uninstalled like software: go to System -> Administration -> Add/Remove Software -> Fonts (click on the Fonts category)
I removed many (all the) kacst and lohit and other un-needed foreign language fonts this way.
All, system-wide, fonts in Fedora, Linux, are in /usr/share/fonts/
for example
/usr/share/fonts/bitstream-vera/*
/usr/share/fonts/default/*
/usr/share/fonts/dejavu/*
/usr/share/fonts/kacst/
/usr/share/fonts/smc/
/usr/share/fonts/stix/*
* = these I did not remove – not completely.
For what is left, just move them out and then run the fc-cache command (see ‘man fc-cache’)
for example, create a ~/fonts-fedora folder (plus)
mkdir /home/[you]/fonts-fedora
mkdir /home/[you]/fonts-fedora/default
mkdir /home/[you]/fonts-fedora/default/ghostscript/
mkdir /home/[you]/fonts-fedora/default/type1
then, log in as root (su -) and move out just some of the un-needed, unused fonts:
cd /usr/share/fonts/
mv cjkuni* /home/[you]/fonts-fedora/
mv default/ghostscript/hr* /home/[you]/fonts-fedora/default/ghostscript/
mv default/ghostscript/u00* /home/[you]/fonts-fedora/default/ghostscript/
mv default/Type1/* /home/[you]/fonts-fedora/default/type1/
mv jomo* /home/[you]/fonts-fedora/
mv khme* /home/[you]/fonts-fedora/
mv liber* /home/[you]/fonts-fedora/
mv lklug /home/[you]/fonts-fedora/
mv lohit* /home/[you]/fonts-fedora/
or ... rm -rf lohit* # if you don't need all the foreign languages
mv opens* /home/[you]/fonts-fedora/
mv pak* /home/[you]/fonts-fedora/
mv para* /home/[you]/fonts-fedora/
mv sil-* /home/[you]/fonts-fedora/
mv smc /home/[you]/fonts-fedora/
mv thai-* /home/[you]/fonts-fedora/
mv wqy-* /home/[you]/fonts-fedora/
mv vlgo* /home/[you]/fonts-fedora/
mv un-c* /home/[you]/fonts-fedora/
fc-cache -v (v=verbose)
note: liberation fonts are supposed to be substitutes for Windoze courier new, arial, and times-new-roman, but, web site designers know nothing of this and, especially, if you still have windows on one of your computer anyway, just copy those few from windows and use them. You paid for them.
Example: Arial, Courier New, Georgia, Tahoma, Times New Roman, and Verdana
fonts-web-windoze/
bytes --- date --- font-name
352224 Aug 10 2004 arialbd.ttf
226748 Aug 10 2004 arialbi.ttf
207808 Aug 10 2004 ariali.ttf
138468 May 28 1998 arialNarrowB.ttf
141328 May 28 1998 arialNarrowI.ttf
134188 May 28 1998 arialNarrow.ttf
367112 Aug 10 2004 arial.ttf
312920 Aug 10 2004 courNewbd.ttf
236148 Aug 10 2004 courNewbi.ttf
245032 Aug 10 2004 courNewi.ttf
303296 Aug 10 2004 courNew.ttf
145940 Jun 10 2009 georgiab.ttf
162380 Jun 10 2009 georgiai.ttf
157080 Jun 10 2009 georgia.ttf
164332 Jun 10 2009 georgiaz.ttf
355436 Aug 10 2004 tahomabd.ttf
383140 Aug 10 2004 tahoma.ttf
398372 Aug 10 2004 timesbd.ttf
239692 Aug 10 2004 timesbi.ttf
248368 Aug 10 2004 timesi.ttf
409280 Aug 10 2004 times.ttf
137616 Aug 10 2004 verdanab.ttf
155076 Aug 10 2004 verdanai.ttf
171792 Aug 10 2004 verdana.ttf
154800 Aug 10 2004 verdanaz.ttf
To activate these and any personal fonts you have, they should be copied into your /home/[you]/.fonts folder. Create it if it does not yet exist.
in the end, you might have something like these 2 folders
/home/greg/.fonts/web-windoze/
/home/greg/.fonts/greg-personal/
To add fonts system-wide, create a folder for them under /usr/share/fonts/
copy them into the folder. It is a good idea to create a new subdirectory, such as local/ or [your-name], etc., to help distinguish between yours and default installed fonts.
To add fonts for yourself, copy the new fonts into a folder under the .fonts/ folder
in the user’s home directory.
Use the fc-cache command to update the font information cache, as in the following
example: fc-cache -v ( -v for verbose just to see it work)
The command loads into memory, fonts from both /usr/share/fonts/ and /home/[you]/.fonts/
Note:
if a font file name ends with a .gz extension, it is compressed and cannot be used until uncompressed.
example: keep your personal favorite fonts in folders in /home/[you]/fonts-favorites/
then at /usr/share/fonts/
on your desktop, open your “computer” icon (with your file browser, Nautilus) and mount your windows partition, copy out a minimal set of C:/windows/fonts/* that every web site expects,
like Arial, Courier New, Georgia, Tahoma, Times New Roman, and Verdana
mkdir web-windoze
cp -p /home/greg/fonts-windoze/gks-windoze/* web-windoze/
Fonts can be uninstalled like software: go to System -> Administration -> Add/Remove Software -> Fonts (click on the Fonts category)
I removed many (all the) kacst and lohit and other un-needed foreign language fonts this way.
All, system-wide, fonts in Fedora, Linux, are in /usr/share/fonts/
for example
/usr/share/fonts/bitstream-vera/*
/usr/share/fonts/default/*
/usr/share/fonts/dejavu/*
/usr/share/fonts/kacst/
/usr/share/fonts/smc/
/usr/share/fonts/stix/*
* = these I did not remove – not completely.
For what is left, just move them out and then run the fc-cache command (see ‘man fc-cache’)
for example, create a ~/fonts-fedora folder (plus)
mkdir /home/[you]/fonts-fedora
mkdir /home/[you]/fonts-fedora/default
mkdir /home/[you]/fonts-fedora/default/ghostscript/
mkdir /home/[you]/fonts-fedora/default/type1
then, log in as root (su -) and move out just some of the un-needed, unused fonts:
cd /usr/share/fonts/
mv cjkuni* /home/[you]/fonts-fedora/
mv default/ghostscript/hr* /home/[you]/fonts-fedora/default/ghostscript/
mv default/ghostscript/u00* /home/[you]/fonts-fedora/default/ghostscript/
mv default/Type1/* /home/[you]/fonts-fedora/default/type1/
mv jomo* /home/[you]/fonts-fedora/
mv khme* /home/[you]/fonts-fedora/
mv liber* /home/[you]/fonts-fedora/
mv lklug /home/[you]/fonts-fedora/
mv lohit* /home/[you]/fonts-fedora/
or ... rm -rf lohit* # if you don't need all the foreign languages
mv opens* /home/[you]/fonts-fedora/
mv pak* /home/[you]/fonts-fedora/
mv para* /home/[you]/fonts-fedora/
mv sil-* /home/[you]/fonts-fedora/
mv smc /home/[you]/fonts-fedora/
mv thai-* /home/[you]/fonts-fedora/
mv wqy-* /home/[you]/fonts-fedora/
mv vlgo* /home/[you]/fonts-fedora/
mv un-c* /home/[you]/fonts-fedora/
fc-cache -v (v=verbose)
note: liberation fonts are supposed to be substitutes for Windoze courier new, arial, and times-new-roman, but, web site designers know nothing of this and, especially, if you still have windows on one of your computer anyway, just copy those few from windows and use them. You paid for them.
Example: Arial, Courier New, Georgia, Tahoma, Times New Roman, and Verdana
fonts-web-windoze/
bytes --- date --- font-name
352224 Aug 10 2004 arialbd.ttf
226748 Aug 10 2004 arialbi.ttf
207808 Aug 10 2004 ariali.ttf
138468 May 28 1998 arialNarrowB.ttf
141328 May 28 1998 arialNarrowI.ttf
134188 May 28 1998 arialNarrow.ttf
367112 Aug 10 2004 arial.ttf
312920 Aug 10 2004 courNewbd.ttf
236148 Aug 10 2004 courNewbi.ttf
245032 Aug 10 2004 courNewi.ttf
303296 Aug 10 2004 courNew.ttf
145940 Jun 10 2009 georgiab.ttf
162380 Jun 10 2009 georgiai.ttf
157080 Jun 10 2009 georgia.ttf
164332 Jun 10 2009 georgiaz.ttf
355436 Aug 10 2004 tahomabd.ttf
383140 Aug 10 2004 tahoma.ttf
398372 Aug 10 2004 timesbd.ttf
239692 Aug 10 2004 timesbi.ttf
248368 Aug 10 2004 timesi.ttf
409280 Aug 10 2004 times.ttf
137616 Aug 10 2004 verdanab.ttf
155076 Aug 10 2004 verdanai.ttf
171792 Aug 10 2004 verdana.ttf
154800 Aug 10 2004 verdanaz.ttf
To activate these and any personal fonts you have, they should be copied into your /home/[you]/.fonts folder. Create it if it does not yet exist.
in the end, you might have something like these 2 folders
/home/greg/.fonts/web-windoze/
/home/greg/.fonts/greg-personal/
To add fonts system-wide, create a folder for them under /usr/share/fonts/
copy them into the folder. It is a good idea to create a new subdirectory, such as local/ or [your-name], etc., to help distinguish between yours and default installed fonts.
To add fonts for yourself, copy the new fonts into a folder under the .fonts/ folder
in the user’s home directory.
Use the fc-cache command to update the font information cache, as in the following
example: fc-cache -v ( -v for verbose just to see it work)
The command loads into memory, fonts from both /usr/share/fonts/ and /home/[you]/.fonts/
Note:
if a font file name ends with a .gz extension, it is compressed and cannot be used until uncompressed.
example: keep your personal favorite fonts in folders in /home/[you]/fonts-favorites/
then at /usr/share/fonts/
on your desktop, open your “computer” icon (with your file browser, Nautilus) and mount your windows partition, copy out a minimal set of C:/windows/fonts/* that every web site expects,
like Arial, Courier New, Georgia, Tahoma, Times New Roman, and Verdana
mkdir web-windoze
cp -p /home/greg/fonts-windoze/gks-windoze/* web-windoze/
|
应该和 windows 一样,在某个目录,找到删了就行