一.安裝

不要安裝ubuntu的wine,改安裝wine HQ的版本..

1.先到wine HQ下載 Wine 0.9.51的deb並安裝

http://www.winehq.org/site/download


2.先執行winecfg一次以便自動生成wine的目錄及設定檔 (~/.wine)


3.手動增加光碟機的聯結,這能避免日後使用光碟時發生錯誤!

ln -s /dev/scd0 ~/.wine/dosdevices/d\:\:



二.中文字型設定

參考網路上不少文章,最後的改法如下:

1.在 win.ini 裡添加以下的敘述

[Desktop]
IconTitleFaceName=AR PL New Sung
menufontsize=14
messagefontsize=14
statusfontsize=14
IconTitleSize=14


2.在 user.reg 裡添加以下的敘述

[Software\\Wine\\X11 Driver]
"ClientSideAntiAliasWithRender"="N"


3.在 system.reg 裡添加以下的敘述

[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
"AR PL New Sung"="AR PL New Sung"
"Arial"="Arial"
"Arial CE,238"="AR PL New Sung"
"Arial CYR,204"="AR PL New Sung"
"Arial Greek,161"="AR PL New Sung"
"Arial TUR,162"="AR PL New Sung"
"Courier New"="Courier New"
"Courier New CE,238"="AR PL New Sung"
"Courier New CYR,204"="AR PL New Sung"
"Courier New Greek,161"="AR PL New Sung"
"Courier New TUR,162"="AR PL New Sung"
"FixedSys"="AR PL New Sung"
"Helv"="AR PL New Sung"
"Helvetica"="AR PL New Sung"
"MingLiU"="MingLiU"
"MS Sans Serif"="AR PL New Sung"
"MS Shell Dlg"="AR PL New Sung"
"MS Shell Dlg 2"="AR PL New Sung"
"System"="AR PL New Sung"
"Tahoma"="AR PL New Sung"
"Times"="Times"
"Times New Roman"="Times New Roman"
"Times New Roman CE,238"="AR PL New Sung"
"Times New Roman CYR,204"="AR PL New Sung"
"Times New Roman Greek,161"="AR PL New Sung"
"Times New Roman TUR,162"="AR PL New Sung"
"Tms Rmn"="AR PL New Sung"
#細明體部份我是直接從XP抓過來用,所以沒用新宋體替代掉!
 
[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"FIXEDFON.FON"="JhengHei.ttf"
"FONTS.FON"="JhengHei.ttf"
"LogPixels"=dword:00000078
"OEMFONT.FON"="JhengHei.ttf"
#這四個字型的替代中文字型我是選擇用黑體字,也可以選擇用新細明體..
 不過最好不要選用新宋體,否則選單的字型會變得不好辨識!



三.其他設定

1.參考wiki,在 user.reg 裡添加設定值

美化選單:

[Control Panel\\Colors]
"ActiveBorder"="239 235 230"
"ActiveTitle"="0 153 11"
"AppWorkspace"="128 128 128"
"Background"="58 110 165"
"ButtonAlternateFace"="180 180 180"
"ButtonDkShadow"="64 64 64"
"ButtonFace"="232 227 221"
"ButtonHilight"="255 255 255"
"ButtonLight"="239 235 230"
"ButtonShadow"="128 128 128"
"ButtonText"="0 0 0"
"GradientActiveTitle"="166 202 240"
"GradientInactiveTitle"="192 192 192"
"GrayText"="128 128 128"
"Hilight"="0 153 11"
"HilightText"="255 255 255"
"HotTrackingColor"="0 0 255"
"InactiveBorder"="192 192 192"
"InactiveTitle"="232 227 221"
"InactiveTitleText"="0 0 0"
"InfoText"="0 0 0"
"InfoWindow"="255 255 225"
"Menu"="232 227 221"
"MenuBar"="232 227 221"
"MenuHilight"="0 0 0"
"MenuText"="0 0 0"
"Scrollbar"="239 235 230"
"TitleText"="255 255 255"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"WindowText"="0 0 0"

wine預設的顯示卡記憶體為64MB,可以在這裡設定正確的數值
[Software\\Wine\\Direct3D]
"VideoMemorySize"="128"

#我是128MB Onboard,所以設成128


2.讓Windows程式選單執行快一點

修改 /usr/share/X11/locale/zh_TW.UTF-8/XLC_LOCALE 把以下註釋掉

# fs2 class (Chinese Han Character (Traditional))
#fs2 {
# charset {
# name BIG5-0:GLGR
# }
# font {
# primary BIG5-0:GLGR
# substitute BIG5-0:GLGR
# }
#}




參考資料:
http://wine-wiki.org/
http://forum.ubuntu.org.cn/viewtopic.php?t=~
  


Posted by tzoyiing at 痞客邦 PIXNET Comments(0) Trackback(1) Hits(2077)

open trackbacks list Trackbacks (1)

  • [教學] 設定 Wine 的字型

    <p>在 Ubuntu 及其他 Linux 底下,若你想要執行 Windows 底下的程式,唯一的方式

Comments (0)

Post Comment

Comment Permissions: Allow commenting

Leave Comment

*Name/Nickname
E-mail
Personal Website
Comment Title
*Comment
* Private Comment