I don't believe that the manifest could change anything. The problem happens in
my system too, and is not linked with DPI changes. I just used 96 dpi and the
text drawing by Vim has the same problem.

One key that we must think about is how Vim calculates the font size to
accommodate columns and rows in a buffer window. I don't have the Vim
sources so
I can't answer that question but Windows has only one way to measure a font
height and that way is pixels. But we always set True Type and Clear Type font
sizes in points. I think that this calculation is made in the right way by
GVim, since is very simple. But just this does not work with some fonts. If you
get Liberation Mono font, for example, the result is very similar in GVim and
Notepad, but not in UltraEdit 32.

In other way, raster fonts are much better show in GVim than other known
editors. For this two considerations I came with the conclusion that the
difference has in the calculation of the font (and characters) size. I also saw
this difference between how the fonts are shown a few years ago. But I never
pay to much attention on it. I solved the problem looking for a better font to
work with. Just that.


2009/3/25 George V. Reilly
> I wasn't expecting the change to the manifest to do anything different on
> XP; I was confirming that it didn't cause any problems.
>
> I'll try turning off Aero (DWM) tomorrow when I'm at work.
>
> I believe Bram monitors this mailing list, but I'll pass the patch on to him
> anyway.
>
> --
> /George V. Reilly
> http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech
>
>
> On Wed, Mar 25, 2009 at 4:49 PM, Joe Castro wrote:
>>
>> XP does DPI scaling differently so I don't think it would be affected the
>> same way.  Not sure what the difference would be on Vista for you, it may
>> behave differently with DWM on/off?
>>
>> The patch works great for me. (indirectly, I embedded the manifest using
>> mt rather than rebuilding Vim).  Thanks for the quick turnaround!  The
>> toolbar is at the size it would be for 96DPI, but other than that I don't
>> see any side effects.  Is there anything I should do to hopefully get this
>> included in Vim 7.3?
>>
>> Thanks!
>> -Joe
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On Behalf
>> Of George V. Reilly
>> Sent: Wednesday, March 25, 2009 3:03 PM
>> To: [email protected]
>> Cc: [email protected]
>> Subject: Re: Feature Request: Dpi awareness on Windows
>>
>> The difference is obvious in your screenshot, but I can't repro it. At
>> high DPI on my Win32 Vista SP1, gvim 7.2.147 looks just as sharp as Notepad
>> or Notepad++.
>>
>> Nevertheless, here's a patch. I tested it on XP SP 2 also.
>>
>> --
>> /George V. Reilly
>> http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech
>>
>>
>>
>> On Wed, Mar 25, 2009 at 8:38 AM, Joe Castro
>> wrote:
>> > Thanks for the quick response.
>> >
>> >
>> >
>> > This is a side by side picture of some XML in notepad and Gvim with this
>> > behavior:
>> >
>> >
>> > http://cid-a8c4875178efed94.skydrive.live.com/self.aspx/Public/FuzzyGvim.png
>> >
>> > The system DPI in the shot is 150% normal (144dpi).  The font in both is
>> > Consolas.
>> >
>> >
>> >
>> > It's not a clear type issue.  When an app doesn't opt-in to DPI
>> > awareness
>> > Windows just scales the visuals.  I think this is just a matter of
>> > calling
>> > user32!SetProcessDPIAware early near the app's entry point, or embedding
>> > a
>> > manifest along the lines of:
>> >
>> > <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
>> > <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
>> > manifestVersion="1.0">
>> >   <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
>> >     <asmv3:windowsSettings
>> >          xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings";>
>> >       <dpiAware>true</dpiAware>
>> >     </asmv3:windowsSettings>
>> >   </asmv3:application>
>> > </assembly>
>> >
>> >
>> >
>> > Everything might automatically work if this was done, though it's likely
>> > bitmap images on the menus won't look right.  Still I'd rather have
>> > fuzzy
>> > pictures than text :)
>> >
>> > Thanks,
>> >
>> > -Joe
>> >
>> >
>> >
>> > From: [email protected] [mailto:[email protected]] On
>> > Behalf
>> > Of George V. Reilly
>> > Sent: Tuesday, March 24, 2009 9:20 PM
>> > To: [email protected]
>> > Cc: [email protected]
>> > Subject: Re: Feature Request: Dpi awareness on Windows
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Mar 24, 2009 at 1:48 PM, Joe Castro
>> > wrote:
>> >
>> > From the website it seemed like this is the place to send feature
>> > requests.
>> >
>> >
>> >
>> > It would be great if Gvim was DPI aware.  The text is fuzzy in non-96dpi
>> > on
>> > Windows Vista and 7.  So far I haven't had any luck modifying this by
>> > just
>> > adding a manifest next to the exe.
>> >
>> > Picture = 1K words. Please take a few screenshots [1], save them as
>> > PNGs,
>> > upload them somewhere (such as http://imagebin.ca/), and send a link to
>> > the
>> > Vim mailing list.
>> >
>> > [1] http://www.wikihow.com/Take-a-Screenshot-in-Microsoft-Windows
>> >
>> > Is this perhaps some artficact of ClearType that you dislike? Do other
>> > applications, such as Notepad or Notepad++, exhibit the same problem
>> > with
>> > the same fonts?
>> >
>> > --
>> >
>> > /George V. Reilly
>> >
>> >
>> >
>> >
>> >
>> > >
>> >
>>
>>
>>
>>
>>
>
>
> >
>



-- 
Alessandro Antonello

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to