今天在ubuntu下更新了中文,结果原来的字体突然变得很模糊,找了很多解决方法,发现下面这个能达到效果
sudo ln -s /etc/fonts/conf.avail/66-wqy-zenhei-sharp.conf /etc/fonts/conf.d
sudo nano 66-wqy-zenhei-sharp.conf
把一下内容复制进去
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- WenQuanYi Zen Hei Configure File -->
<fontconfig>
<match target="font">
<test qual="any" name="family">
<string>WenQuanYi Zen Hei</string>
<string>文泉驿正黑</string>
<string>文泉驛正黑</string>
</test>
<test compare="more_eq" name="pixelsize"><double>12</double></test>
<test compare="less_eq" name="pixelsize"><double>16</double></test>
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family">
<string>WenQuanYi Zen Hei</string>
<string>文泉驿正黑</string>
<string>文泉驛正黑</string>
</test>
<test compare="more_eq" name="pixelsize"><double>13.5</double></test>
<test compare="less" name="pixelsize"><double>14.5</double></test>
<edit name="pixelsize"><double>13</double></edit>
</match>
</fontconfig>
保存退出login out
|
阅读(1291) | 评论(0) | 转发(0) |