Wine fonts messed up

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
lsearcey
Level 1
Level 1
Posts: 6
Joined: Sat Mar 29, 2008 7:29 pm

Wine fonts messed up

Post by lsearcey »

I started using wine and used it to play return to Castle Wolfenstein which worked great. I installed Adobe Acrofat 7 Professional and now all of the wines menus are small and unreadable. Like this:

Image
By lsearcey at 2008-03-29


Any ideas on how to fix this? I tried uninstalling Adobe Acorbat but i can't read the screens.

Thank You very much for your help
James McKenzie

Wine fonts messed up

Post by James McKenzie »

lsearcey wrote:
I started using wine and used it to play return to Castle Wolfenstein which worked great. I installed Adobe Acrofat 7 Professional and now all of the wines menus are small and unreadable. Like this:

[Image: http://img249.imageshack.us/img249/1958 ... eende9.png ]
By lsearcey (http://profile.imageshack.us/user/lsearcey) at 2008-03-29


Any ideas on how to fix this? I tried uninstalling Adobe Acorbat but i can't read the screens.

Thank You very much for your help

You might want to look at running the Wine Configuration program,
winecfg by typing, in a terminal session, wine winecfg

This will bring up a dialog box like in your picture. Select the
Graphics tab and move the slider on the bottom to reflect the dots per
inch of your screen. In my case, it is 120 dpi. On other computers it
is 133 dpi and on some older monitors, it is 96dpi. The formula to
determine the value is to measure the actual size of your screen. in
inches, as most screens are measured on the diagonal (bottom left corner
to upper right corner). Divide the number of pixels displayed by the
number of inches. My screen is 8 inches tall and my display is 960
Pixels (dots). The result is 960/8 =120 dpi.

Hope this helps and sorry for the massive technical explanation. If
this does NOT help, please visit the Applications Database (AppDb) and
see if anyone has encountered this problem before and what they tried to
do to fix this particular problem.

James McKenzie
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

From the screenshot, it looks like only the fonts are affected, not the whole display. Check your /windows/fonts directory--my guess is that Acrobat installed fonts there. If that is the cause, your choices (based on my admittedly limited understanding of how wine handles fonts) are to either install the MS core fonts to /windows/fonts, or install the Acrobat fonts to your system and delete everything from /windows/fonts.
lsearcey
Level 1
Level 1
Posts: 6
Joined: Sat Mar 29, 2008 7:29 pm

Post by lsearcey »

I did that in the terminal but when it brings up the wine configure window its small like in my picture. Is there a way to configue it some other way?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

lsearcey wrote:I did that in the terminal but when it brings up the wine configure window its small like in my picture. Is there a way to configue it some other way?
File ~/.wine/system.reg:

Code: Select all

[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"LogPixels"=dword:00000060
That "00000060" is actual in hex - 0x60 = 96. You want to set it to 120 = 0x78:

Code: Select all

"LogPixels"=dword:00000078
lsearcey
Level 1
Level 1
Posts: 6
Joined: Sat Mar 29, 2008 7:29 pm

Post by lsearcey »

Sorry dimesio I'm very new to Ubuntu how do do all of that?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

lsearcey wrote:Sorry dimesio I'm very new to Ubuntu how do do all of that?
With text editor.
lsearcey
Level 1
Level 1
Posts: 6
Joined: Sat Mar 29, 2008 7:29 pm

Post by lsearcey »

Vitamin I pasted the following in the terminal but its says "bash: File: command not found" Am I missing something?


File ~/.wine/system.reg:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"LogPixels"=dword:00000078
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

vitamin wrote:
lsearcey wrote:Sorry dimesio I'm very new to Ubuntu how do do all of that?
With text editor.
Vitamin's answer about the text editor refers to his suggestion, not mine. What he means is, open the file ~/.wine/system.reg in a text editor (gedit is one that I think is installed by default with Ubuntu) and look for the entry
[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"LogPixels"=dword:00000060
then change the 60 to a 78.

My thinking is that Acrobat installing fonts into ~/.wine/drive_c/windows/fonts may be what is messing up the fonts display in other wine programs. An easy way to check this is to copy the fonts in that directory to another directory (so you can get them back easily), then delete everything from ~/.wine/drive_c/windows/fonts (leave the empty directory intact). Then open winecfg. If the fonts look normal, then that was the problem. If not, then I'm wrong about the cause.
James McKenzie

Wine fonts messed up

Post by James McKenzie »

dimesio wrote:
vitamin wrote:
lsearcey wrote:
Sorry dimesio I'm very new to Ubuntu how do do all of that?
With text editor.
Vitamin's answer about the text editor refers to his suggestion, not mine. What he means is, open the file ~/.wine/system.reg in a text editor (gedit is one that I think is installed by default with Ubuntu) and look for the entry

[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"LogPixels"=dword:00000060
then change the 60 to a 78.

That value may be incorrect. I gave instructions on how to determine
dots per inch (dpi) by dividing the number of pixels by the appropriate
inch range on your screen. For instance: I have two computers, a
MacBook Pro which has a 16:9 screen size of 15" on the diagonal. The
actual screen size is 12 X 8 (approximately), my screen is set to
1440x960. So if I do the math, my dpi is 120. However, my IBM A22p is
also 15" but in 4:3 format so the actual dpi is 133. So the number
entered is different for the two systems. I would accept 120 (0x78) as
a good estimate and it is much better than 96 dpi (which would be true
on a 15" monitor running 640x480 or 800x600 but not 1024x768. This
should eliminate the 'small fonts' problem and is what Windows actually
does to make displayed fonts larger.

Acrobat may have reset the dpi setting, but I don't think that should
happen.

James McKenzie
Locked