Jump to content

Wine configuration


Recommended Posts

I decided I would try Wine again (I haven't done so for 3 years at least). I installed current "community" version (2005le I guess).

Unfortunately, whenever a win32 window appears, Wine chooses an unreadable symbols font (no parking, aircraft, no smoking...)!

 

I ran find / *.ttf or *.afm, from which I got the sorted list of directories with fonts. I changed my config file accordingly, but the config file seems to be completely ignored! In fact, the drives mapped into this config file are ignored too, and I couldn't even run wine until I created a link for each Wine drive in ~/.wine/dosdevices (thanks Google, nothing in the doc about that...)

 

An idea? You can see below the screenshot...

 

 

and here is the config file (without most comments):

WINE REGISTRY Version 2

[Drive A]
"Path" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Device" = "/dev/fd0"

[Drive C]
"Path" = "/local/.sys/win32/wine_c"
"Type" = "hd"
"Label" = "/local/.sys/win32/wine_c"
"Filesystem" = "win95"

[Drive D]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "/mnt/cdrom"
"Filesystem" = "win95"
"Device" = "/dev/hdc"

[Drive E]
"Path" = "/mnt/dvd"
"Type" = "cdrom"
"Label" = "/mnt/dvd"
"Filesystem" = "win95"
"Device" = "/dev/hdd"

[Drive H]
"Path" = "%HOME%"
"Type" = "network"
"Device" = ""
"Filesystem" = "win95"

[Drive T]
"Path" = "/tmp"
"Type" = "hd"
"Device" = ""
"Filesystem" = "win95"

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

[wine]
"Windows" = "C:\\Windows"
"System" = "C:\\Windows\\System"
"Temp" = "T:\\"
"Path" = "C:\\Windows;C:\\Windows\\System;T:\\;T:\\test;H:\\"
"GraphicsDriver" = "x11drv"
"ShellLinker" = "wineshelllink"

# [wineconf]

[Version]
"Windows" = "win98"

[DllOverrides]
"oleaut32" = "builtin, native"
"ole32" = "builtin, native"
"commdlg" = "builtin, native"
"comdlg32" = "builtin, native"
"shell" = "builtin, native"
"shell32" = "builtin, native"
"shfolder" = "builtin, native"
"shlwapi" = "builtin, native"
"shdocvw" = "builtin, native"
"advapi32" = "builtin, native"
"msvcrt" = "native, builtin"
"mciavi.drv" = "native, builtin"
"mcianim.drv" = "native, builtin"
"msi" = "native, builtin"
"*" = "builtin, native"

[x11drv]
"AllocSystemColors" = "100"
"PrivateColorMap" = "N"
"PerfectGraphics" = "N"
"Managed" = "Y"
"UseDGA" = "Y"
"UseXVidMode" = "Y"
"UseXRandR" = "Y"
"UseTakeFocus" = "Y"
"DXGrab" = "N"
"DesktopDoubleBuffered" = "Y"
"Desktop" = "N"

[fonts]

[FontDirs]
"dir1" = "/usr/lib/openoffice/share/fonts/truetype"
"dir2" = "/usr/share/fonts/otf/mdk"
"dir3" = "/usr/share/fonts/ttf/decoratives"
"dir4" = "/usr/share/fonts/ttf/western"
"dir5" = "/usr/share/fonts/wine"
"dir6" = "/usr/X11R6/lib/X11/fonts/TTF"
"dir7" = "/local/.sys/linux/opt.real/ttfonts"

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

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

[ppdev]

[spooler]
"FILE:" = "|gtklp"
"LPT1:" = "win32.ps"
"LPT2:" = "|gv -"
"LPT3:" = "/dev/lp0"

[ports]

[Debug]

[registry]
"LoadGlobalRegistryFiles" = "Y"
"LoadHomeRegistryFiles" = "Y"
"LoadWindowsRegistryFiles" = "Y"
"WritetoHomeRegistryFiles" = "Y"
"SaveOnlyUpdatedKeys" = "Y"

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

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

[afmdirs]
"1" = "/usr/lib/openoffice/share/psprint/fontmetric"
"2" = "/usr/share/enscript/afm"
"3" = "/usr/share/fonts/afms/adobe"
"4" = "/usr/share/fonts/default/ghostscript"
"5" = "/usr/share/fonts/default/Type1"
"6" = "/usr/share/fonts/default/Type1/adobestd35"
"7" = "/usr/X11R6/lib/X11/fonts/Type1"

[WinMM]

"Drivers" = "wineoss.drv"    ; default for most common configurations
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"

[dsound]

[Network]

#########################################
# Application dependent sections follow #
#########################################

[AppDefaults\\_INS5576._MP\\x11drv]
"Managed" = "N"
"Desktop" = "N"

[AppDefaults\\nlnotes.exe\\x11drv]
"Desktop" = "800x600"

[AppDefaults\\explorer.exe\\x11drv]
"Desktop" = "800x600"

[AppDefaults\\notes.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"

[AppDefaults\\nlnotes.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"

[AppDefaults\\nhldaemn.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"

# [/wineconf]

 

Yves.

 

[moved from Software by spinynorman :)]

Link to comment
Share on other sites

Yves, your surmise is correct. From my ~/.wine/config

 

WINE REGISTRY Version 2
;; Powered by Sidenet
;; http://sidenet.ddo.jp/winetips/
;; Version 1.8.3
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; WARNING
;; This file is ignored in wine >= 200506*

;; If you think it is necessary to show others your complete config for a
;; bug report, filter out empty lines and comments with
;; grep -v "^;" ~/.wine/config | grep '.'

 

(Note: I setup WINE with the Sidenet config utility. The address above is its homepage, and look in http://sidenet.ddo.jp/winetips/files/ for the latest tarball)

 

I'm not too sure how font-setting works in WINE, but if you hunt through the registry you should find a number of keys showing a list of available fonts.

 

Have you installed IE6? This installs (optionally) a set of 'IE core fonts' - maybe it is the lack of them that's causing the problem? (It is always a good idea to install IE whether you will use it directly or not, because so many other apps depend on it.)

 

Finally, I wonder if it might be a locale problem rather than a font problem? It's curious that the titlebar of your window is unaffected by this, perhaps that's the reason?

Link to comment
Share on other sites

Thanks for the answer.

I even tried an older version (from MdK 10.1 CDs), that still relied on .wine/config, yet the problem is exactly the same!

 

The only difference I see with the days when it worked (apart from newer software everywhere), is that now I install Mdk/v with UTF-8 as the default encoding, though the locale still stays FR. In the "old" days, the encoding was ISO-8859-1(5). Could this be the problem with Windows texts? If so, what could be the solution?

 

Yves.

 

(Note: it is normal that the title bar is OK: it is a managed window, hence the title is "drawn" by X, not Wine)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...