CentOS 修改系统字体 - XiZi's Blog

CentOS 修改系统字体

Xizi posted @ 2013年4月07日 18:01 in 未分类 with tags font local.conf centos , 11571 阅读

1、添加字体

 

#创建新的字体存放文件夹
mkdir /usr/share/fonts/chinese
#拷贝新字体到新文件夹
cp newfont.ttf /usr/share/fonts/chinese
cd /usr/share/fonts/chinese
#修复字体字体权限(这里比较重要,否则可能字体访问出错)
chmod 644 *.ttf
#更新字体
mkfontscale
mkfontdir
fc-cache -fv

2、配置字体,下面是/etc/fonts/local.conf的一个示例,这里替换字体为微软雅黑

 

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Serif</string>
			<string>YaHei Consolas Hybrid</string>
			<string>AR PL UMing CN</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>Bitstream Vera Serif</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans</string>
			<string>YaHei Consolas Hybrid</string>
			<string>Bitstream Vera Sans</string>
			<string>WenQuanYi Zen Hei</string>
			<string>AR PL UMing CN</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans Mono</string>
			<string>YaHei Consolas Hybrid</string>
			<string>Bitstream Vera Sans Mono</string>
			<string>WenQuanYi Zen Hei</string>
			<string>AR PL UMing CN</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match>
</fontconfig>
Avatar_small
muneer 说:
2020年8月09日 20:55

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info 메이저사이트

Avatar_small
muneer 说:
2020年8月09日 21:12

Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”. entrepreneur visa canada

Avatar_small
muneer 说:
2020年9月05日 00:57

Thanks for sharing this interesting blog with us.My pleasure to being here on your blog..I wanna come beck here for new post from your site. house shifting Services

Avatar_small
muneer 说:
2020年9月27日 20:04

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. The Florence Residences Floorplan

Avatar_small
muneer 说:
2020年9月29日 04:47

Your post has those facts which are not accessible from anywhere else. It’s my humble request to u please keep writing such remarkable articles The Florence Residences Price List

Avatar_small
muneer 说:
2020年9月30日 22:43

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. penrose condo

Avatar_small
muneer 说:
2020年9月30日 22:49

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. <a href="https://www.the-19nassim.com/">19 nassim condo</a>

Avatar_small
muneer 说:
2020年9月30日 22:49

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. 19 nassim condo

Avatar_small
muneer 说:
2020年9月30日 22:51

Thanks for sharing nice information with us. I like your post and all you share with us is up to date and quite informative, I would like to bookmark the page so I can come here again to read you, as you have done a wonderful job. parc central residences ec

Avatar_small
muneer 说:
2020年9月30日 22:54

Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks clavon showflat

Avatar_small
muneer 说:
2020年9月30日 22:58

Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. midtown modern condo

Avatar_small
muneer 说:
2020年9月30日 23:01

It was a decent post to be sure. I completely delighted in understanding it in my lunch time. Will definitely come and visit this blog all the more frequently. Much obliged for sharing. klimt cairnhill condo

Avatar_small
muneer 说:
2020年9月30日 23:04

The first phase the preparation should, theoretically, be uninfluenced by the intended intensity and duration of the sound which is subsequently produced. In fact, however, so quickly are the three phases accomplished that the pianist rarely has capacity to think, in performance, of each phase separately. liv @ mb condo

Avatar_small
muneer 说:
2020年9月30日 23:14

The first phase the preparation should, theoretically, be uninfluenced by the intended intensity and duration of the sound which is subsequently produced. In fact, however, so quickly are the three phases accomplished that the pianist rarely has capacity to think, in performance, of each phase separately. ryse residences condo

Avatar_small
muneer 说:
2020年9月30日 23:20

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. one north gateway condo

Avatar_small
muneer 说:
2020年9月30日 23:23

I truly awed after read this in light of some quality work and educational contemplations . I just wanna express profound gratitude for the essayist and want you to enjoy all that life has to offer for coming!. <a href="https://www.perfecttencondo.com/">perfect ten condo price</a>

Avatar_small
muneer 说:
2020年9月30日 23:26

Excellent article plus its information and I positively bookmark to this site because here I always get an amazing knowledge as I expect. Thanks for this to share with us dairy farm residences price

Avatar_small
Alex33 说:
2020年10月02日 01:34

Great post. I was checking continuously this blog and I am impressed! Extremely useful info particularly the last part :) navigate here

Avatar_small
muneer 说:
2020年10月03日 23:03

I hope you will share such type of impressive contents again with us so that we can utilize it and get more advantage. voyance par texto

Avatar_small
muneer 说:
2020年10月04日 06:00

So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site. meilleure voyance sans cb

Avatar_small
muneer 说:
2020年10月08日 00:35

Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”. joker123

Avatar_small
muneer 说:
2020年10月08日 01:31

I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. Daftar joker123

Avatar_small
muneer 说:
2020年10月12日 22:05

So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site. liteblue usps login

Avatar_small
muneer 说:
2020年10月12日 23:09

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. lite blue

Avatar_small
muneer 说:
2020年10月25日 23:19 Particular interviews furnish firsthand message on mart size, industry trends, ontogeny trends, capitalist landscape and outlook, etc. car loan automotive finance 20
Avatar_small
muneer 说:
2020年10月26日 00:56

Visit our site to find more about wedding photographer Northern Virginia. We offer engagement and proposal photography in Va. used car buying advice

Avatar_small
Norton 说:
2020年10月31日 20:03

Someone essentially lend a hand to make critically articles I would state. This is the first time I frequented your website page and to this point? mypickandmix.co.uk

Avatar_small
muneer 说:
2020年11月02日 02:28

Hmm!! This blog is really cool, I’m so lucky that I have reached here and got this awesome information. True Classic Tees

Avatar_small
muneer 说:
2020年11月10日 02:13

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. Clenbuterol online

Avatar_small
muneer 说:
2020年11月15日 00:38

Thanks for sharing this interesting blog with us.My pleasure to being here on your blog..I wanna come beck here for new post from your site. houston embroidery service

Avatar_small
Norton 说:
2020年12月01日 05:13

It certainly is nearly close to impossible to come across well-advised viewers on this niche, but you come across as like you fully grasp those things you’re covering! Excellent Luxury Rehabs California

Avatar_small
muneer 说:
2020年12月07日 04:16

This is very smart, really an intelligent idea. This is my first time in your blog and I really love it. Thanks for this awesome post. Low-Cost Health Insurance

Avatar_small
muneer 说:
2020年12月08日 22:59

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. https://georgia.travel/community/discussion/general/the-ultimate-guide-to-wear-stylish-hats-1


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee