WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 8 posts ] 



 
Author Message
 Post subject: wine dpi too large
 Post Posted: Thu Apr 10, 2008 6:36 pm 
 
On Thu, Apr 10, 2008 at 3:52 PM, influensa <wineforum-user@winehq.org> wrote:
Quote:
I accidentally put the wine font to 496 dpi, because im stupid,
so does anyone know a way to change all the settings back to default?

This is getting to be an FAQ. Try this:

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 an entry like

Quote:
[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
"LogPixels"=dword:00000060

then change the value from whatever it's at now to 60.


Top 
 Post subject: wine dpi too large
 Post Posted: Thu Apr 10, 2008 10:39 pm 
Offline
Moderator
Moderator
User avatar

Joined: Fri Feb 22, 2008 9:13 pm
Posts: 326
On Thursday April 10 2008 22:52:14 influensa wrote:
Quote:
I accidentally put the wine font to 496 dpi, because im stupid,
[Embarassed] so does anyone know a way to change all the settings back to
default? [Question]

please help me, PLEASE :P

Just run winecfg again. Of course it will be "cropped" but you can move it on
the screen in order to reach buttons you need.
In most cases you can move windows larger than your screen (and all other
windows) with Alt+Mouse, that is press and hold Alt key and move your mouse -
this will move a window under the cursor. Sometimes Meta ("Windows") key is
used instead of Alt (this depends on your configuration of window manager).
Therefore you can move winecfg with oversized fonts on the screen in order to
reach all parts of its GUI.
Explanation seems to be a little long but actually this is very simple
and fast way (much faster than editing registry by hand). It takes just few
seconds to change from, say, 480 DPI back to 96 (or whatever you want).


Top 
 Post subject: wine dpi too large
 Post Posted: Fri Apr 11, 2008 7:40 am 
 
On Friday 11 April 2008 05:38:40 L. Rahyen wrote:
Quote:
On Thursday April 10 2008 22:52:14 influensa wrote:
Quote:
I accidentally put the wine font to 496 dpi, because im stupid,
[Embarassed] so does anyone know a way to change all the settings
back to default? [Question]

Just run winecfg again. Of course it will be "cropped" but you can
move it on the screen in order to reach buttons you need.

In most cases you can move windows larger than your screen (and all
other windows) with Alt+Mouse, that is press and hold Alt key and
move your mouse - this will move a window under the cursor. Sometimes
Meta ("Windows") key is used instead of Alt (this depends on your
configuration of window manager). Therefore you can move winecfg with
oversized fonts on the screen in order to reach all parts of its GUI.

Explanation seems to be a little long but actually this is very
simple and fast way (much faster than editing registry by hand). It
takes just few seconds to change from, say, 480 DPI back to 96 (or
whatever you want).

Maybe a dumb question, but why is this setting in winecfg in the first
place? Why can't Wine simply use the DPI info from the X server?


Top 
 Post subject: wine dpi too large
 Post Posted: Fri Apr 11, 2008 8:02 am 
 
I know of at least one app that breaks in environments with a
non-default dpi setting. This isn't necessarily Wine's problem (and
could perhaps be fixed by making old windows versions override the dpi
setting?), but it might not make sense for Wine to change the default
until it becomes normal for Windows users to do so.

On Fri, Apr 11, 2008 at 8:39 AM, Tijl Coosemans <tijl@ulyssis.org> wrote:
Quote:
On Friday 11 April 2008 05:38:40 L. Rahyen wrote:
Quote:
On Thursday April 10 2008 22:52:14 influensa wrote:
Quote:
I accidentally put the wine font to 496 dpi, because im stupid,
[Embarassed] so does anyone know a way to change all the settings
back to default? [Question]


Quote:
Just run winecfg again. Of course it will be "cropped" but you can
move it on the screen in order to reach buttons you need.

In most cases you can move windows larger than your screen (and all
other windows) with Alt+Mouse, that is press and hold Alt key and
move your mouse - this will move a window under the cursor. Sometimes
Meta ("Windows") key is used instead of Alt (this depends on your
configuration of window manager). Therefore you can move winecfg with
oversized fonts on the screen in order to reach all parts of its GUI.

Explanation seems to be a little long but actually this is very
simple and fast way (much faster than editing registry by hand). It
takes just few seconds to change from, say, 480 DPI back to 96 (or
whatever you want).

Maybe a dumb question, but why is this setting in winecfg in the first
place? Why can't Wine simply use the DPI info from the X server?





--
Vincent Povirk


Top 
 Post subject: wine dpi too large
 Post Posted: Fri Apr 11, 2008 10:12 pm 
 
Tijl Coosemans wrote:
Quote:
On Friday 11 April 2008 05:38:40 L. Rahyen wrote:

Quote:
On Thursday April 10 2008 22:52:14 influensa wrote:

Quote:
I accidentally put the wine font to 496 dpi, because im stupid,
[Embarassed] so does anyone know a way to change all the settings
back to default? [Question]

Just run winecfg again. Of course it will be "cropped" but you can
move it on the screen in order to reach buttons you need.

In most cases you can move windows larger than your screen (and all
other windows) with Alt+Mouse, that is press and hold Alt key and
move your mouse - this will move a window under the cursor. Sometimes
Meta ("Windows") key is used instead of Alt (this depends on your
configuration of window manager). Therefore you can move winecfg with
oversized fonts on the screen in order to reach all parts of its GUI.

Explanation seems to be a little long but actually this is very
simple and fast way (much faster than editing registry by hand). It
takes just few seconds to change from, say, 480 DPI back to 96 (or
whatever you want).


Maybe a dumb question, but why is this setting in winecfg in the first
place? Why can't Wine simply use the DPI info from the X server?


Simple, the DPI setting may be incorrect. I've seen folks using small
fonts (96 dpi) on screens with 1024x768 or higher resolutions. This
would make some programs open into too small an area to be usable. Add
to this that winecfg does emulate the ability of some systems to custom
set the dpi value (I use 133 on my Thinkpad and 120 on my Mac because of
the screen layouts, as I've stated in this mailing list before.) Thus
this ability was retained and a default of 96 dpi was retained. Of
course, you can always edit Wine's registry and set it to any value you
please just to see what happens. However, 496 is way to large a number
unless you have some sort of projection system that can handle that high
a resolution (I'm thinking somewhere above 10,000 pixels on each side
onto a 2m x 2m area at a minimum.) Of course, some of us would love to
have a system with that kind of graphics power.

James McKenzie


Top 
 Post subject: wine dpi too large
 Post Posted: Mon Apr 14, 2008 8:03 am 
 
On Saturday 12 April 2008 05:11:30 James McKenzie wrote:
Quote:
Tijl Coosemans wrote:
Quote:
Maybe a dumb question, but why is this setting in winecfg in the
first place? Why can't Wine simply use the DPI info from the X
server?

Simple, the DPI setting may be incorrect. I've seen folks using
small fonts (96 dpi) on screens with 1024x768 or higher resolutions.
This would make some programs open into too small an area to be
usable. Add to this that winecfg does emulate the ability of some
systems to custom set the dpi value (I use 133 on my Thinkpad and 120
on my Mac because of the screen layouts, as I've stated in this
mailing list before.) Thus this ability was retained and a default
of 96 dpi was retained.

You can set the DPI of your monitor using DisplaySize in the xorg.conf
Monitor section. I don't understand why Wine needs to be different from
other X apps when it comes to this. DPI is a server side setting, not
client side. Really, the only good reason I can think of is that, due
to bad API design and/or sloppy programmers, there may be Windows apps
which GUI doesn't scale properly on higher DPI monitors. For instance,
when font sizes are set in points while some GUI elements are measured
or positioned using pixels.


Top 
 Post subject: Re: wine dpi too large
 Post Posted: Mon Apr 14, 2008 8:50 am 
Offline
Moderator
Moderator

Joined: Sat Feb 23, 2008 2:29 pm
Posts: 6605
Tijl Coosemans wrote:
On Saturday 12 April 2008 05:11:30 James McKenzie wrote:
Quote:
Tijl Coosemans wrote:
Quote:
Maybe a dumb question, but why is this setting in winecfg in the
first place? Why can't Wine simply use the DPI info from the X
server?

Simple, the DPI setting may be incorrect. I've seen folks using
small fonts (96 dpi) on screens with 1024x768 or higher resolutions.
This would make some programs open into too small an area to be
usable. Add to this that winecfg does emulate the ability of some
systems to custom set the dpi value (I use 133 on my Thinkpad and 120
on my Mac because of the screen layouts, as I've stated in this
mailing list before.) Thus this ability was retained and a default
of 96 dpi was retained.

You can set the DPI of your monitor using DisplaySize in the xorg.conf
Monitor section. I don't understand why Wine needs to be different from
other X apps when it comes to this. DPI is a server side setting, not
client side. Really, the only good reason I can think of is that, due
to bad API design and/or sloppy programmers, there may be Windows apps
which GUI doesn't scale properly on higher DPI monitors. For instance,
when font sizes are set in points while some GUI elements are measured
or positioned using pixels.

You are correct. From my experience with windows over number of years if you try to set DPI to anything other then standard 96 - expect some programs do look bad/break completely. And if DPI set to something other then 96 or 120 - things break for lots of apps (not 1-2).


Top 
 Post subject: Re: wine dpi too large
 Post Posted: Fri Oct 26, 2012 6:52 pm 
Offline
Newbie
Newbie

Joined: Fri Oct 26, 2012 6:49 pm
Posts: 1
I set the dpi way too large, got it back again BUT: windows apps are still set to the bad (too large ) dpi setting. Unuseable. What do I do?


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 8 posts ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: Bing [Bot] and 9 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: