google / UIforETW

User interface for recording and managing ETW traces
https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/
Apache License 2.0
1.55k stars 201 forks source link

Using system default settings or custom settings for fonts #78

Open hackwrench opened 8 years ago

hackwrench commented 8 years ago

I'm using a preview build of Win10 I have a TV that is hooked up to a laptop, The TV is smaller than 32" and larger than the laptop's 15", 720p. The font is not large enough for me to read easily at the distance I sit from the TV. There are system font sizes at Control Panel\All Control Panel Items/Display It would be nice if Microsoft provided more suggestions than the items listed there, but that's another problem.

randomascii commented 8 years ago

I'm not sure what the options are for addressing this. Marking the application as high-DPI aware? Explicitly changing the font? It will be important to make sure that the dialog doesn't grow to be larger than your screen's resolution, since off-screen buttons are a bigger problem than too-small buttons.

In most cases I only ever click Start Tracing and Save Trace Buffers, so readability isn't much of a concern. I guess readability of the trace information can be important when recording information about the analysis.

mwinterb commented 8 years ago

If you haven't already looked into it, UIforETW is already marked as high-DPI aware (at least, as of the last release). It explicitly needs Per Monitor High-DPI awareness.

That change is trivial, but handling of the WM_DPICHANGED still needs to happen to actually make the dialog react to the new DPI once the dialog has moved from one display to another. Which may be trivial to do, it just did not happen automatically.

It seems that the DPI selected for a pre-"monitor specific DPI-aware" application is the DPI of the main display, so a temporary workaround for @hackwrench may be to make the TV the main display, but that may have other unwanted consequences.