4 ms·
> For three - the dialog layout. If your dialogs have text that's longer than 3-4 words, the chances are that it will either overflow, underflow or wrap differe
by madeofpalk 13y ago
> For three - the dialog layout. If your dialogs have text that's longer than 3-4 words, the chances are that it will either overflow, underflow or wrap differently under different DPIs. This in turn means that you need to test dialog appearance with at least 4 different font sizes and Tahoma 8px for Windows XP. Do you know how hard it is to word a longish sentence so that it would fill about the same space with all 5 combinations? Really damn hard and very time consuming.
I don't understand that one. If the text is going to be a different size because it's scaled with the DPI, then hasnt the dialog itself scaled equally as well?
- latitude 13y agoAll sizes in dialog templates are indeed specified in "dialog units", which are based on the metrics of the dialog's font. So in theory if you are to double the font size, all dialog elements would just double in size and all will be well. In practice, this is not sufficiently accurate to accommodate text size differences when going from one font/size to another. It's just too crude. For example - http://imgur.com/STtd8OQ http://imgur.com/STtd8OQ Top is SegoeUI/9pt, standard for DPI of 96. Middle is SegoeUI/10pt, standard for DPI of 125. Bottom is Tahoma/8pt, standard for XP at 96. See how bottom two trim "practice"? That shouldn't be happening, but it does.
- sliverstorm 13y agoSo wouldn't you just force the font?
- wtallis 13y agoOn Windows, requesting a particular font size is just a hope and a prayer. The OS will draw things at the size it thinks is best, with heavy-handed hinting, so the size of a rendered piece of text is quite non-linear with respect to font size: http://damieng.com/blog/2007/06/13/font-rendering-philosophies-of-windows-and-mac-os-x http://damieng.com/blog/2007/06/13/font-rendering-philosophi... This makes it quite impossible for an application to implement a general solution to the problem. You pretty much have to treat HiDPI as another translation of the GUI with respect to sizing things.