QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3921|回复: 21

还是关于wine的中文显示

[复制链接]
发表于 2002-12-15 15:58:09 | 显示全部楼层 |阅读模式
我装的是wine的最新版本,在config里将字体设置成-misc-simsun-还是不能显示中文啊(rh8+simsun包)
发表于 2002-12-15 16:12:47 | 显示全部楼层
字体目录设了吗?还有wine不认识fonts.conf的,必须有fonts.dir
回复

使用道具 举报

 楼主| 发表于 2002-12-15 19:38:49 | 显示全部楼层
字体目录怎么设置啊?麻烦斑竹给个具体的答案
回复

使用道具 举报

发表于 2002-12-15 19:42:39 | 显示全部楼层
在config文件里有一个Fontsdir段,去掉dir1前面的;,然后把目录改成你自己的字体所在的路径,当然dir2,dir3也可设.
回复

使用道具 举报

 楼主| 发表于 2002-12-16 17:11:44 | 显示全部楼层
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;;
;; MS-DOS drives configuration
;;
;; Each section has the following format:
;; [Drive X]
;; "Path"="xxx"       (Unix path for drive root)
;; "Type"="xxx"       (supported types are 'floppy', 'hd', 'cdrom' and 'network')
;; "Label"="xxx"      (drive label, at most 11 characters)
;; "Serial"="xxx"     (serial number, 8 characters hexadecimal number)
;; "Filesystem"="xxx" (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix')
;;   This is the FS Wine is supposed to emulate on a certain
;;   directory structure.
;;   Recommended:
;;   - "win95" for ext2fs, VFAT and FAT32
;;   - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
;;   DON'T use "unix" unless you intend to port programs using Winelib !
;; "Device"="/dev/xx" (only if you want to allow raw device access)
;;
[Drive A]
"Path" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Serial" = "87654321"
"Device" = "/dev/fd0"

[Drive C]
"Path" = "/mnt/winc"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

[Drive I]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win95"
; make sure that device is correct and has proper permissions !
"Device" = "/dev/cdrom"

[Drive E]
"Path" = "/mnt/wine"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

[Drive F]
"Path" = "/mnt/winf"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

[Drive G]
"Path" = "/mnt/wing"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win95"

[Drive H]
"Path" = "/tmp"
"Type" = "hd"
"Label" = "Tmp Drive"
"Filesystem" = "win95

[Drive J]
"Path" = "${HOME}"
"Type" = "network"
"Label" = "Home"
"Filesystem" = "win95"

[Drive Z]
"Path" = "/"
"Type" = "network"
"Label" = "Root"
"Filesystem" = "win95"

[wine]
"Windows" = "c:\\winnt"
"System" = "c:\\winnt\\system32"
"Temp" = "h:\\"
"Path" = "c:\\winnt;c:\\winnt\\system;h:\\;h:\\test;f:\\"
"Profile" = "c:\\winnt\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;"ShowDirSymlinks" = "1"
"ShellLinker" = "wineshelllink"

# <wineconf>

[DllDefaults]
; "EXTRA_LD_LIBRARY_PATH" = "${HOME}/wine/cvs/lib"
"DefaultLoadOrder" = "native, builtin, so"

[DllOverrides]
"commdlg"      = "builtin, native"
"comdlg32"     = "builtin, native"
"ver"          = "builtin, native"
"version"      = "builtin, native"
"shell"        = "builtin, native"
"shell32"      = "builtin, native"
"lzexpand"     = "builtin, native"
"lz32"         = "builtin, native"
"comctl32"     = "builtin, native"
"commctrl"     = "builtin, native"
"wsock32"      = "builtin"
"winsock"      = "builtin"
"advapi32"     = "builtin, native"
"crtdll"       = "builtin, native"
"mpr"          = "builtin, native"
"winspool.drv" = "builtin, native"
"ddraw"        = "builtin, native"
"dinput"       = "builtin, native"
"dsound"       = "builtin, native"
"mmsystem"     = "builtin"
"winmm"        = "builtin"
"msvcrt"       = "native, builtin"
"msvideo"      = "builtin, native"
"msvfw32"      = "builtin, native"
"mcicda.drv"   = "builtin, native"
"mciseq.drv"   = "builtin, native"
"mciwave.drv"  = "builtin, native"
"mciavi.drv"   = "native, builtin"
"mcianim.drv"  = "native, builtin"
"msacm.drv"    = "builtin, native"
"msacm"        = "builtin, native"
"msacm32"      = "builtin, native"
"midimap.drv"  = "builtin, native"
"wnaspi32"     = "builtin"
"icmp"         = "builtin"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "N"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"

[fonts]
;Read documentation/fonts before adding aliases
"Resolution" = "96"
"Default" = "-misc-simsun-,fixed"

[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"
"Com3" = "/dev/ttyS2"
"Com4" = "/dev/modem"

[parallelports]
"Lpt1" = "/dev/lp0"

[spooler]
"LPT1:" = "|lpr"
;"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
;"LPT3:" = "/dev/lp3"

[ports]
;"read" = "0x779,0x379,0x280-0x2a0"
; "write" = "0x779,0x379,0x280-0x2a0"

[spy]
"Exclude" = "WM_SIZE;WM_TIMER;"

[registry]
;These are all booleans.  Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

[Tweak.Layout]
"WineLook" = "Win98"

[Console]
;"Drivers" = "tty"
;"XtermProg" = "nxterm"
;"InitialRows" = "25"
;"InitialColumns" = "80"
;"TerminalType" = "nxterm"

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"

[Tweak.Fonts]
"System.Height" = "10"
"System.Bold" = "false"
"System.Italic" = "false"
"System.Underline" = "false"
"System.StrikeOut" = "false"
"SystemFixed.Height" = "10"
"SystemFixed.Bold" = "false"
"SystemFixed.Italic" = "false"
"SystemFixed.Underline" = "false"
"SystemFixed.StrikeOut" = "false"
"OEMFixed.Height" = "10"
"OEMFixed.Bold" = "false"
"OEMFixed.Italic" = "false"
"OEMFixed.Underline" = "false"
"OEMFixed.StrikeOut" = "false"
"AnsiFixed.Height" = "10"
"AnsiFixed.Bold" = "false"
"AnsiFixed.Italic" = "false"
"AnsiFixed.Underline" = "false"
"AnsiFixed.StrikeOut" = "else"
"Ansi.Height" = "10"
"Ansi.Bold" = "false"
"Ansi.Italic" = "false"
"Ansi.Underline" = "false"
"Ansi.StrikeOut" = "false"

# </wineconf>

这是我的config文件.请问要怎么改呢?好像没有fondir啊
回复

使用道具 举报

发表于 2002-12-16 18:58:34 | 显示全部楼层
你用的是那个版本的wine?
回复

使用道具 举报

发表于 2002-12-16 19:00:04 | 显示全部楼层
这个配置文件好像是rh8自带的哪个
回复

使用道具 举报

发表于 2002-12-16 19:45:48 | 显示全部楼层
那么自己加一行
[FontDirs]
"dir1" = "/usr/share/fonts/zh_CN/TrueType/simsun"<--根据你自己的字体目录改.
回复

使用道具 举报

 楼主| 发表于 2002-12-16 21:40:53 | 显示全部楼层
改成这样了.还是不行啊,在winmap里还是不能显示中文,歌词也不行.标题栏到是可以
fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-misc-simsum-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"

;; default TrueType fonts with russian koi8-r encoding
;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;; default cyrillic bitmap X fonts
;"Default" = "-cronyx-helvetica-"
;"DefaultFixed" = "fixed"
;"DefaultSerif" = "-cronyx-times-"
;"DefaultSansSerif" = "-cronyx-helvetica-"

; the TrueType font dirs you want to make accessible to wine
[FontDirs]
;"dir1" = "/usr/local/zhfonts/simsun"
;"dir2" = "/usr/local/zhfonts/simsun"
;"dir3" = "/usr/local/zhfonts/simsun"
;"dir4" = "/usr/local/zhfonts/simsun"
回复

使用道具 举报

发表于 2002-12-16 22:26:06 | 显示全部楼层
参考精华区的例子
1,你的字体没设置正确
2,你的字体路径前面的分号还没去掉
回复

使用道具 举报

发表于 2002-12-16 22:53:19 | 显示全部楼层
标题栏的好像可以,和设置关系不大.
回复

使用道具 举报

 楼主| 发表于 2002-12-16 23:37:31 | 显示全部楼层
我去掉了前面的分号.我的字体是装在/usr/local/zhfonts/下的.是用的公社的美化包啊,还是不能显示中文
回复

使用道具 举报

 楼主| 发表于 2002-12-16 23:58:02 | 显示全部楼层
fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-misc-simsun-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-misc-simsun-"
"DefaultSansSerif" = "-misc-simsun-"

;; default TrueType fonts with russian koi8-r encoding
;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;; default cyrillic bitmap X fonts
;"Default" = "-cronyx-helvetica-"
;"DefaultFixed" = "fixed"
;"DefaultSerif" = "-cronyx-times-"
;"DefaultSansSerif" = "-cronyx-helvetica-"

; the TrueType font dirs you want to make accessible to wine
[FontDirs]
"dir1" = "/usr/local/zhfonts/simsun"
"dir2" = "/usr/local/zhfonts/simsun"
"dir3" = "/usr/local/zhfonts/simsun"
"dir4" = "/usr/local/zhfonts/simsun"
还有哪里错了??麻烦斑竹和部长了.呵呵.问了这么多次
回复

使用道具 举报

发表于 2002-12-17 01:24:09 | 显示全部楼层
"dir1" = "/usr/local/zhfonts/"可乎?
回复

使用道具 举报

发表于 2002-12-17 09:09:21 | 显示全部楼层
如楼上,你应该指定的是字体所在的目录,如果不在simsun下。应该上面的才行。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 02:02 , Processed in 0.063879 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表