“Flash”的版本间的差异
来自Ubuntu中文
(→修改49-xxx文件) |
小 |
||
第8行: | 第8行: | ||
== 中文乱码 == | == 中文乱码 == | ||
− | + | ===删除49-xxx文件=== | |
+ | 治标不治本的方法 | ||
+ | <pre>sudo rm /etc/fonts/conf.d/49-sansserif.conf </pre> | ||
− | + | ===修改49-xxx文件=== | |
− | + | 把文泉义字体放进去,前提是已经装好了WenQuanYi ZenHei字体。 | |
+ | <pre><?xml version="1.0"?> | ||
+ | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
+ | <fontconfig> | ||
+ | <!-- | ||
+ | If the font still has no generic name, add sans-serif | ||
+ | --> | ||
+ | <match target="pattern"> | ||
+ | <test qual="all" name="family" compare="not_eq"> | ||
+ | <string>wqy zenghei</string> | ||
+ | </test> | ||
+ | <test qual="all" name="family" compare="not_eq"> | ||
+ | <string>wqy zenghei</string> | ||
+ | </test> | ||
+ | <test qual="all" name="family" compare="not_eq"> | ||
+ | <string>monospace</string> | ||
+ | </test> | ||
+ | <edit name="family" mode="append_last"> | ||
+ | <string>wqy zenghei</string> | ||
+ | </edit> | ||
+ | </match> | ||
+ | </fontconfig> </pre> | ||
===替换字体====== | ===替换字体====== |
2010年1月29日 (五) 08:56的版本
Adobe Flash
安装
flash插件就是一个libflashplayer.so文件,从adobe官网下载deb或tar.gz压缩包,把里面的libflashplayer.so解压到/usr/lib/mozilla/plugins (如果没有就新建,这是整个系统设置),或者 /home/用户名/.mozilla/plugins (这是只针对该用户,不需要root权限),然后重启firefox,opera,konqueror...
中文乱码
删除49-xxx文件
治标不治本的方法
sudo rm /etc/fonts/conf.d/49-sansserif.conf
修改49-xxx文件
把文泉义字体放进去,前提是已经装好了WenQuanYi ZenHei字体。
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>wqy zenghei</string> </test> <test qual="all" name="family" compare="not_eq"> <string>wqy zenghei</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>wqy zenghei</string> </edit> </match> </fontconfig>
替换字体===
我用的是通过 /home用户名/.fonts.conf 配置字体,没装宋体和文泉驿,无 flash 中文问题。
原来美化中文字体的英文部分时候用的是字体替换,会有 flash 乱码,现在用的是追加,没有乱码问题了。
添加下列<match target="pattern"> <test name="lang" compare="eq"> <string>zh</string> <string>zh-cn</string> </test> <edit name="family" mode="append" binding="strong"> <string>Luxi Sans</string> <string>...</string> </edit> </match>