The time now is Mon 20 May 2013, 03:09
All times are UTC - 4 |
|
Page 17 of 36 [526 Posts] |
Goto page: Previous 1, 2, 3, ..., 15, 16, 17, 18, 19, ..., 34, 35, 36 Next |
| Author |
Message |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Sat 11 Dec 2010, 12:22 Post subject:
Subject description: font rendering |
|
Looking good,
Peter, here's font 12 (font 11 is good also). This is without the extra formulas | Quote: | | 'fontsize=12.0*(78.0/xftdpi)*(107.0/xdpi) -- just fontsize=12 | in the orginal program (which did not render properly)
Thanks again for your help.
Regards,
s
| Description |
|
| Filesize |
22.99 KB |
| Viewed |
1072 Time(s) |

|
|
|
Back to top
|
|
 |
PjotAwake

Joined: 03 Nov 2010 Posts: 34 Location: The Hague, The Netherlands
|
Posted: Sat 11 Dec 2010, 13:08 Post subject:
|
|
Thanks seaside,
Now, can you tell me how you obtain that value '78.0' in the shown formula?
If I know how this is calculated then HUG can solve the font issue....
Best regards
Peter
EDIT: never mind, got it, it is the default Xft size in Puppy. Therefore the resizing does not work on my Puppy Linux environment. Probably I should be using the screen DPI.
EDIT2: can you try again with the latest HUG version? I've been testing this with the help of Vovchik, please let me know if it works for you.
Thanks again, Peter
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Sat 11 Dec 2010, 20:46 Post subject:
|
|
| PjotAwake wrote: |
EDIT2: can you try again with the latest HUG version? I've been testing this with the help of Vovchik, please let me know if it works for you.
Thanks again, Peter |
Spot on at font 12 and 96 dpi
I went on to try 108 dpi and it broke
Thanks Peter and Vovchik,
s
| Description |
|
| Filesize |
30.78 KB |
| Viewed |
996 Time(s) |

|
| Description |
|
| Filesize |
28.11 KB |
| Viewed |
977 Time(s) |

|
|
|
Back to top
|
|
 |
PjotAwake

Joined: 03 Nov 2010 Posts: 34 Location: The Hague, The Netherlands
|
Posted: Sun 12 Dec 2010, 09:13 Post subject:
|
|
Thanks seaside,
This is caused by the fact that HUG only takes care of DPI values below 100
So I have fixed this now too, I simply override the screen DPI for the HUG application with the default 96.
As you can see the window gets a little bit bigger when the fonts are bigger, this is as designed. GTK assumes a default font size of 10.
If you have time can you try the last HUG include both with DPI 96 and 108?
Thanks again,
Peter
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Sun 12 Dec 2010, 10:52 Post subject:
|
|
| PjotAwake wrote: |
If you have time can you try the last HUG include both with DPI 96 and 108?
Thanks again,
Peter |
Peter, thanks for your patient attention to this problem.
I've checked 96 and it's perfect!! - 108 is still suffering.
Regards,
s
| Description |
|
| Filesize |
32.35 KB |
| Viewed |
949 Time(s) |

|
|
|
Back to top
|
|
 |
PjotAwake

Joined: 03 Nov 2010 Posts: 34 Location: The Hague, The Netherlands
|
Posted: Sun 12 Dec 2010, 11:29 Post subject:
|
|
Hi seaside,
This is impossible HUG uses gdk_screen_set_resolution now to set the font resolution. It always will set a dpi of 96 now and the fonts should be displayed accordingly...
Are you really sure that you dowloaded the latest version and not the one in your browser cache or proxy cache?
You can check this by verifying line 290, this should be:
| Code: |
gdk_screen_set_resolution(gdk_screen_get_default(), 96)
|
So if you have this line, and it still does not work, can you change the 96 for 78 (your Xft.dpy size) and then compile again?? Because if that works we know the resolution depends on Xft.dpy and not the screen dpy.
Thanks also for your patience,
Best regards
Peter
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Sun 12 Dec 2010, 12:01 Post subject:
|
|
| PjotAwake wrote: | Hi seaside,
This is impossible HUG uses gdk_screen_set_resolution now to set the font resolution. It always will set a dpi of 96 now and the fonts should be displayed accordingly...
Are you really sure that you dowloaded the latest version and not the one in your browser cache or proxy cache?
You can check this by verifying line 290, this should be:
| Code: |
gdk_screen_set_resolution(gdk_screen_get_default(), 96)
|
So if you have this line, and it still does not work, can you change the 96 for 78 (your Xft.dpy size) and then compile again?? Because if that works we know the resolution depends on Xft.dpy and not the screen dpy.
Thanks also for your patience,
Best regards
Peter |
Peter,
Verified the line, recompiled -didn't work. Changed the line to 78, recompiled and same result. This is all with fontsize 12.
Hope this helps.
Regards,
s
EDIT: ran a check of Xorg to see if something is amiss with my end and got this- | Code: | # xdpyinfo | grep dimensions
dimensions: 1024x768 pixels (413x232 millimeters)
# xdpyinfo | grep "dots per inch"
resolution: 63x84 dots per inch
# |
|
|
Back to top
|
|
 |
PjotAwake

Joined: 03 Nov 2010 Posts: 34 Location: The Hague, The Netherlands
|
Posted: Sun 12 Dec 2010, 16:00 Post subject:
|
|
| Quote: |
EDIT: ran a check of Xorg to see if something is amiss with my end and got this-
# xdpyinfo | grep dimensions
dimensions: 1024x768 pixels (413x232 millimeters)
# xdpyinfo | grep "dots per inch"
resolution: 63x84 dots per inch
#
|
Well I really don't get this - you appear not to be running a DPI of 107 at all? You run at 63x84.
Furthermore, I am unable to reproduce your problem myself. I have installed an older Puppy 4.2.1 and am actually running a DPI of 108. Barry's application runs fine with the latest HUG, as you can see from the screenshot below.
So if I may ask, what exactly are you changing when you change your dpi???
The way I change the dpi setting in Puppy is by adding the line '-dpi 108' to the file /etc/xextraoptions and then execute 'startx'.
Regards
Peter
| Description |
|

Download |
| Filename |
screen.jpg |
| Filesize |
75.76 KB |
| Downloaded |
241 Time(s) |
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Sun 12 Dec 2010, 17:42 Post subject:
|
|
| PjotAwake wrote: | | Quote: |
EDIT: ran a check of Xorg to see if something is amiss with my end and got this-
# xdpyinfo | grep dimensions
dimensions: 1024x768 pixels (413x232 millimeters)
# xdpyinfo | grep "dots per inch"
resolution: 63x84 dots per inch
#
|
Well I really don't get this - you appear not to be running a DPI of 107 at all? You run at 63x84.
|
All rather confusing...but I thought DPI just was about quality vs resolution (ie, size). On my Dell, running 1024x768 pixels (270x203 millimeters) at 96 DPI without issue.
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 832
|
Posted: Sun 12 Dec 2010, 17:49 Post subject:
|
|
| PjotAwake wrote: | | Quote: |
EDIT: ran a check of Xorg to see if something is amiss with my end and got this-
# xdpyinfo | grep dimensions
dimensions: 1024x768 pixels (413x232 millimeters)
# xdpyinfo | grep "dots per inch"
resolution: 63x84 dots per inch
#
|
Well I really don't get this - you appear not to be running a DPI of 107 at all? You run at 63x84.
Furthermore, I am unable to reproduce your problem myself. I have installed an older Puppy 4.2.1 and am actually running a DPI of 108. Barry's application runs fine with the latest HUG, as you can see from the screenshot below.
So if I may ask, what exactly are you changing when you change your dpi???
The way I change the dpi setting in Puppy is by adding the line '-dpi 108' to the file /etc/xextraoptions and then execute 'startx'.
Regards
Peter |
Thanks for sticking with this - After lots of trials.....
This part | Code: | # xdpyinfo | grep "dots per inch"
resolution: 63x84 dots per inch | apparently is not meaningful because it comes up the same no matter which dpi I've chosen
I'm using pup431 and setting /menu/desktop/set global font size/dpi-108. The file /root/.Xresources then shows this line "Xft.dpi: 108" and a restart of X produces the larger font and the Xorg check with xdpyinfo as previously shown(63x83).
I blanked the .Xresources file and restarted x (startx) as you described with "-dpi 108 in etc/xextraoptions (it only contained -shadow)" and it defaulted to 78.
Perhaps this is what happened in pup421 (does the font on the menus look like 108?). My CD of 421 is in the bottom of a box right now or I'd check it.
I'd like to offer you some time away from this for a day or so, because I'm moving and won't have access to testing anything for a bit.
Many thanks for all your efforts,
s
(If you keep going that will be ok, too and I'll be ready to check out anything you need when I'm back )
|
|
Back to top
|
|
 |
PjotAwake

Joined: 03 Nov 2010 Posts: 34 Location: The Hague, The Netherlands
|
Posted: Sun 12 Dec 2010, 18:03 Post subject:
|
|
Thanks seaside,
Now I understand, and the good news is: I am able to reproduce the problem myself now!
The DPI you are referring to is the Xft DPI, and not the global screen DPI.
| Quote: |
I'd like to offer you some time away from this for a day or so
|
Well that is a coincidence, as tomorrow I will be away the whole day So I'll be back when I have some update.
BR,
Peter
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Sun 12 Dec 2010, 18:11 Post subject:
|
|
there is also another area that sets a default
that is a hidden file in root
there may be conflicts
/root/.Xresources
mine looks like this
| Code: | !*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*-*
!*font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-*-*
*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-*-*
!*font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-*-*
Xft.dpi: 96.0
|
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Sun 12 Dec 2010, 19:55 Post subject:
|
|
| big_bass wrote: |
/root/.Xresources
Xft.dpi: 96.0
Joe |
ah...altering up indeed changes resolution. Mine is set at 78.
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Mon 13 Dec 2010, 01:01 Post subject:
|
|
well I am going to keep adding stuff to this post
this is easy but simple examples are nice to have to cut and paste
and it speeds up code writing (complex code snippets are cool
but difficult to start out with and recycle)
some simple examples this list will grow send me small stand alone code snippets they are welcomed and
I will add them here
| Quote: |
---------------------------------------------------------
'bash equivalence of cat
'cat /etc/X11/xorg.conf
result$ = EXEC$("cat /etc/X11/xorg.conf")
PRINT result$
'---------------------------------------------------------
'---------------------------------------------------------
'bash equivalence of ls -1
result2$ = EXEC$("ls -1")
PRINT result2$
'---------------------------------------------------------
'---------------------------------------------------------
' make a blank file called data.txt
COPY "" TO "data.txt"
' write info to a file
OPEN "data.txt" FOR WRITING AS myfile
WRITELN "hello world1" TO myfile
WRITELN "hello world2" TO myfile
WRITELN "hello world3" TO myfile
CLOSE FILE myfile
'---------------------------------------------------------
|
_________________ slackware 14
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Mon 13 Dec 2010, 01:42 Post subject:
|
|
Joe,
You might put them at the beginning of a new thread.
|
|
Back to top
|
|
 |
|
|
Page 17 of 36 [526 Posts] |
Goto page: Previous 1, 2, 3, ..., 15, 16, 17, 18, 19, ..., 34, 35, 36 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|