Re: Font size problem #2
Michael Mather wrote: I am running FDOM and I think that font sizes are being handled wrongly. ... So the default font size has been set (somewhere, I wish I knew where) to 5. I have spent an inordinate amount of time trying to find where the basic font sizes are set. I have found many such places, but when I change them it seems to make no difference. Please can someone tell me the real place. Michael --- -- View this message in context: http://n2.nabble.com/Font-size-problem--2-tp1501613p1519670.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Font size problem #2
The correct solution is to decide that dpi means pixels per apparent inch. Because we look at the FR from much closer than we do a desktop screen, the dpi that we set in /etc/X11/xorg.conf should be somewhat less than the physical pixels per inch. I estimate that I see a desktop screen from about 25 inches, and the FR from about 10 inches. So the FR should be set to about 110 dpi. This would have about the same effect as using a font size of 5 points. I'm not 100% sure that it's The Correct Solution, but I do think it's the best solution and I indeed start my Xglamo with -dpi 100 for that very reason. I believe introducing the apparent factor would create a huge mess instead of solving it. There would be no reliable way to tell how much is an inch - for example displaying a ruler with correct scale would be impossible. The strength of DPI is its ability of being measured. I have another solution of the problem - the toolkits of the clients asking the server about the preferred font size similar way they ask it about the resolution. I think it would not be possible or feasible to ask exactly the same way (does the X server expose preferred font size the same way as DPI?). The client-side apps might contact the corresponding server-side toolkit, which they already do (I noticed irregularities while connecting to a host with an old version of GTK). This would, however, require patches to the toolkits... The problem is that many programs use inches not as a way to talk about the size as measured on the screen (i.e. physical size), but as a way to talk about the size as seen by the user (i.e. visual size). Currently, those two issues are completely conflated (at least for all apps I'm familiar with, under X11). So there's no way to fix one without breaking the other. As it happens, I look at objects on my screen a lot more than I measure them, so I don't care about the physical size of pixels nearly as much as I care about their visual size. So I ask my FR's X server to lie about its pixel density. I originally tried to just adjust the font size, but it's a lot more painful: font size is set at too many places, including at places over which I have no control (e.g. web pages). In theory setting DPI to 100 is the wrong solution, but in practice it seems to be the best one. Stefan ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Font size problem #2
I am running FDOM and I think that font sizes are being handled wrongly. Here is what I think is happening. Could someone who knows more about this correct any details that are wrong. It seems that the standard font size in desktop computers is 12 points, which means that the characters are 1/6 inch high. This is too big for the FR, which has only a small screen (in inches). So the default font size has been set (somewhere, I wish I knew where) to 5. This has the right effect on the character size, but I claim it is the wrong way to solve the problem. This becomes apparent when you ssh -Y into the FR from a desktop computer. The default font then appears unreadably small. The correct solution is to decide that dpi means pixels per apparent inch. Because we look at the FR from much closer than we do a desktop screen, the dpi that we set in /etc/X11/xorg.conf should be somewhat less than the physical pixels per inch. I estimate that I see a desktop screen from about 25 inches, and the FR from about 10 inches. So the FR should be set to about 110 dpi. This would have about the same effect as using a font size of 5 points. Michael --- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Font size problem #2
On Sat, 15 Nov 2008 00:52:08 -0500 Michael Mather [EMAIL PROTECTED] babbled: i absolutely agree. scaling with dpi is short-sightned and too simplisitc as you are right - it is not just scaling to dpi BUT scaling to the visual field that the display would consume - ie how many % of your field of vision does 1 pixel use... not dpi! :) that's why in e/efl/elementary i use a scaling factor. this is entirely user-adjustable and simple scales the default sizes of stuff compared to their normal config settings. (eg if normally the font is 10 pixels - and you have a scaling of 2.0 - u'll get a 20 pixel font - same for any other elements marked as scalable such as fixed sizes of icons etc.). the scaling factor is the important thing here - and really that should just be a user-adjustable value (the default setup would scale to some reasonable value based on what one might expect the eyesight of an average user to be as well as distance from eyes one would expect usage to occur at, but users that have better or worse eyesight, use the device closer or further from their eyes, can fiddle with it). unfortunately... this is something that gtk and qt need to do differently so you need to fake a dpi to them so they think u are at another dpi. efl doesn't care about dpi and just uses the scaling factor (you can keep dpi intact if you want for times when u actually want something to be a physical size). I am running FDOM and I think that font sizes are being handled wrongly. Here is what I think is happening. Could someone who knows more about this correct any details that are wrong. It seems that the standard font size in desktop computers is 12 points, which means that the characters are 1/6 inch high. This is too big for the FR, which has only a small screen (in inches). So the default font size has been set (somewhere, I wish I knew where) to 5. This has the right effect on the character size, but I claim it is the wrong way to solve the problem. This becomes apparent when you ssh -Y into the FR from a desktop computer. The default font then appears unreadably small. The correct solution is to decide that dpi means pixels per apparent inch. Because we look at the FR from much closer than we do a desktop screen, the dpi that we set in /etc/X11/xorg.conf should be somewhat less than the physical pixels per inch. I estimate that I see a desktop screen from about 25 inches, and the FR from about 10 inches. So the FR should be set to about 110 dpi. This would have about the same effect as using a font size of 5 points. Michael --- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community