2008-12-09

Opera 9.62 比较完善的中文显示解决&一些其他问题的解决方案

  Opera这个浏览器实话说windows的版本很好用,linux的版本却莫名其妙我是经常卡死。不过由于我的需求我还是要用的,现在的最新版是9.62 2244,10也出beta了,希望以后能够比较更加完善。
  目前还是老问题,首先是中文字体显示的问题,这里按照opera中文社区的方法的确解决了不少问题。从9.5之后引入的font.ini的机制解决了不少问题,相当不错。
方法:vi /usr/share/opera/ini/font.ini

Opera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding


[matches]

; One can disable xft or core fonts if necessary
;engine:xft=blacklist
;engine:x11=blacklist

; Foundries that are generally known to have bad implementations
;foundry:urw|abiword|ultimo=bad

; Generic settings - families with known glyph types
family:times|nimbus roman no9 l|times new roman|bitstream vera serif=serif
family:helvetica|nimbus sans l|arial|bitstream vera sans=sans-serif
family:courier|courier new|bitstream vera sans mono=monospace

; Generic settings - generic families which have good, readable designs,
; but where we can't be sure the implementation is any good.
family:times|times new roman=good
family:helvetica|arial=good
family:courier|courier new=good
family:clearlyu *=good

; Known high-quality fonts
family:arial|verdana|times new roman;foundry:microsoft|monotype=excellent
family:Nimbus*=verygood
foundry:bitstream=excellent

; Known fonts that solves specific problems
family:mincho|gothic=japanese good try-first
family:kochi*=japanese good try-first
family:₩ヨᄚ¥ᆴヒ¦ᄑモ=chinese-s good try-first
family:baekmuk*=korean good try-first

; Fonts that we know should not be used for displaying text
family:*dingbat*|*dings*|agathadaimon=symbol

; Specific fonts at the bottom
; Known bad implementations
engine:x11;foundry:mdk;family:helvetica=blacklist


[default]
usage=by-request
preference=5

[serif]
style=serif

[sans-serif]
style=sans-serif

[monospace]
style=monospace

[cursive]
style=cursive

[fantasy]
style=fantasy

[japanese]
style=japanese

[chinese-t]
style=chinese-t

[chinese-s]
style=chinese-s

[korean]
style=korean

[try-first]
usage=try-first

[excellent]
preference=8
usage=try-first

[verygood]
preference=7
usage=try-first

[good]
preference=6

[bad]
preference=4

[avoid]
usage=by-request

[symbol]
usage=by-request

[blacklist]
usage=blacklist

  这个文件是从opera中文社区那里下载的内容,如果希望使用其他字体自己修改
family:₩ヨᄚ¥ᆴヒ¦ᄑモ=chinese-s good try-first
这一行换成其他的。记住这个文件是使用utf8编码保存的。如果想要改成使用系统字体显示中文就把那一行改成
family:AR PL UMing*=chinese-s good try-first


  这样一修改基本中文就能够很漂亮的显示了,再也不会有当年恶心的中文了。。。

  一般如果想正常使用opera的话还需要解决一些问题:

flash的问题:
  其实现在的opera不管32位还是64位都能很好的使用flash了。不过效率。。。的确垃圾。。。
  去http://get.adobe.com/flashplayer/ 下载tar.gz的包。
  直接解压开,把里面那个 libflashplayer.so拷贝到/usr/lib/opera/plugins里面。

没有评论: