This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setup.exe: Clues about missing scroll bar in package list


Hi there.

I gather this list is the place to discuss problems with Cygwin's setup.exe --
apologies if I'm wrong.  I've seen some discussion about font size problems
and losing the scroll bar in the package list window, including a request for
debug suggestions.  Since this problem affects me, I thought I'd do some
digging.  It's a few years since I've done any Windows coding and quite a few
more since I touched C++, but I have a couple of ideas and pointers to MSDN
references which might be useful.

At a guess, window.cc (and maybe other places?) should be dividing the result
of GetDeviceCaps(hdc, LOGPIXELSY) by 96 (the naive default value for dots per
inch), instead of 72 (the standard-ish value of points per inch).  There may
be other similar scalings needed.  See

  How to Write High-DPI Applications
    http://msdn.microsoft.com/library/default.asp?
    url=/library/en-us/dngdi/html/highdpiapp.asp

which talks about "how much to scale a design that assumes 96-DPI pixels" and
mentions that "Bitmapped fonts are written for 96-DPI screens, and don=92t
scale".  There may be ways to write your code to just not assume 96 DPI in the
first place, but I don't know what that might involve.

The following also look like they might be useful:

  Windows Font Mapping
    http://msdn.microsoft.com/library/default.asp?
    url=/library/en-us/dngdi/html/msdn_fontmap.asp

  Background on Fonts
    http://msdn.microsoft.com/library/default.asp?
    url=/library/en-us/dnprogwin/html/ch17-02.asp

Hope that helps (so I don't have to reboot windows again next time I want to
upgrade cygwin ;-),
Hugh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]