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 <[email protected]> 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  [email protected]
http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech





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

Reply via email to