2009年12月3日 星期四

wine字型設定

wine用Synaptic安裝完成後,並沒有字型檔案存放到/home/使用者帳號/.wine/drive_c/windows/Fonts/目錄之下,所以執行M$下的應用程式時,字型會有破碎的現象。

1.可以下載螢火飛的字型(AR PL New Sung(螢火飛)文鼎新宋字體下載處),將字型檔案fireflysung.ttf拷貝到/home/使用者帳號/.wine/drive_c/windows/Fonts/目錄之下,如下圖:



該字型檔案叫用名稱為AR PL New Sung,如下圖:


2.修改/home/使用者帳號/.wine/drive_c/windows/win.ini中加入下列資料:


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

3.利用gedit建立font.reg檔案,內容如下:

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink]
"FontLinkControl"=dword:00004000
"FontLinkDefaultChar"=dword:00003000

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ClientSideAntiAliasWithCore"="Y"
"ClientSideAntiAliasWithRender"="Y"
"ClientSideWithRender"="Y"

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial Baltic,186"="AR PL New Sung,186"
"Arial CE,238"="AR PL New Sung,238"
"Arial CYR,204"="AR PL New Sung,204"
"Arial Greek,161"="AR PL New Sung,161"
"Arial TUR,162"="AR PL New Sung,162"
"Courier New Baltic,186"="AR PL New Sung,186"
"Courier New CE,238"="AR PL New Sung,238"
"Courier New CYR,204"="AR PL New Sung,204"
"Courier New Greek,161"="AR PL New Sung,161"
"Courier New TUR,162"="AR PL New Sung,162"
"Helv"="AR PL New Sung"
"Helvetica"="AR PL New Sung"
"MS Shell Dlg"="AR PL New Sung"
"MS Shell Dlg 2"="AR PL New Sung"
"PMingLiU"="AR PL New Sung"
"新細明體"="AR PL New Sung"
"Tahoma"="AR PL New Sung"
"Times"="AR PL New Sung"
"Times New Roman Baltic,186"="AR PL New Sung,186"
"Times New Roman CE,238"="AR PL New Sung,238"
"Times New Roman CYR,204"="AR PL New Sung,204"
"Times New Roman Greek,161"="AR PL New Sung,161"
"Times New Roman TUR,162"="AR PL New Sung,162"
"Tms Rmn"="AR PL New Sung"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
@="AR PL New Sung"
"Arial"="AR PL New Sung"
"Fixedsys"="AR PL New Sung"
"Microsoft Sans Serif"="AR PL New Sung"
"MingLiU"="AR PL New Sung"
"MS UI Gothic"="AR PL New Sung"
"PMingLiU"="AR PL New Sung"
"Simsun"="AR PL New Sung"
"Songti"="AR PL New Sung"
"System"="AR PL New Sung"
"Tahoma"="AR PL New Sung"
"Terminal"="AR PL New Sung"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Microsoft Sans Serif"="fireflysung.ttf,AR PL New Sung"
"SimSun"="fireflysung.ttf,AR PL New Sung"
"Tahoma"="fireflysung.ttf,AR PL New Sung"
"PMingLiU"="fireflysung.ttf,AR PL New Sung"
"Lucida Sans Unicode"="fireflysung.ttf,AR PL New Sung"
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]

"BorderWidth"="1"

"CaptionFont"=hex:f0,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,bc,02,00,00,00,00,00,88,00,00,00,22,44,00,72,00,6f,00,69,00,64,00,20,00,53,00,61,00,6e,00,73,00,20,00,46,00,61,00,6c,00,6c,00,62,00,61,00,63,00,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

"CaptionHeight"="18"

"CaptionWidth"="18"

"MenuFont"=hex:f0,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,bc,02,00,00,00,00,00,88,00,00,00,22,44,00,72,00,6f,00,69,00,64,00,20,00,53,00,61,00,6e,00,73,00,20,00,46,00,61,00,6c,00,6c,00,62,00,61,00,63,00,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

"MenuHeight"="18"

"MenuWidth"="18"

"MessageFont"=hex:f0,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,bc,02,00,00,00,00,00,88,00,00,00,22,44,00,72,00,6f,00,69,00,64,00,20,00,53,00,61,00,6e,00,73,00,20,00,46,00,61,00,6c,00,6c,00,62,00,61,00,63,00,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

"ScrollHeight"="16"

"ScrollWidth"="16"

"Shell Icon Size"="32"

"SmCaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,00,88,00,00,00,00,4d,00,53,00,20,00,53,00,68,00,65,00,6c,00,6c,00,20,00,44,00,6c,00,67,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

"SmCaptionHeight"="18"

"SmCaptionWidth"="13"

"StatusFont"=hex:f0,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,bc,02,00,00,00,00,00,88,00,00,00,22,44,00,72,00,6f,00,69,00,64,00,20,00,53,00,61,00,6e,00,73,00,20,00,46,00,61,00,6c,00,6c,00,62,00,61,00,63,00,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

4.在指令模式下輸入
#regedit開啟wine所摹擬的登錄編輯器Regedit,如下圖:


以導入註冊表檔案方式匯入font.reg,如下圖:


匯入後即可關閉regedit。
之後,再執行以wine摹擬的M$ windows應用軟體,字型就變得很漂亮了,如下圖:




相關文章 :

沒有留言: